src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiServerGenerator.cs
/// <summary>
/// Create the collection of <see cref="OpenApiServer"/> object.
/// </summary>
/// <param name="context">The OData context.</param>
/// <returns>The created collection of <see cref="OpenApiServer"/> object.</returns>
Create the collection of  object.
Create the collection of object .
public static IList<OpenApiServer> CreateServers(this ODataContext context)
        {
            Utils.CheckArgumentNull(context, nameof(context));
            return new List<OpenApiServer>
            {
                new OpenApiServer
                {
                    Url = context.Settings.ServiceRoot?.OriginalString
                }
            };
        }
public static IList < OpenApiServer > CreateServers ( this ODataContext context ) { Utils . CheckArgumentNull ( context , nameof ( context ) ) ; return new List < OpenApiServer > { new OpenApiServer { Url = context . Settings . ServiceRoot ? . OriginalString } } ; }
Create the collection of  object.
Create the collection of object .
// The value of servers is an array of Server Objects. // It contains one object with a field url. // The value of url is a string containing the service root URL without the trailing forward slash.
The created collection of  object.
The created collection of object .
ODataContext
this
context
The OData context.
The OData context .