/// <summary> /// Specify Kestrel as the server to be used by the game host. /// </summary> /// <param name="hostBuilder"> /// The Contoso.GameNetCore.Hosting.IGameHostBuilder to configure. /// </param> /// <param name="configureOptions">A callback to configure Kestrel options.</param> /// <returns> /// The Contoso.GameNetCore.Hosting.IGameHostBuilder. /// </returns> public static IGameHostBuilder UseKestrel(this IGameHostBuilder hostBuilder, Action <GameHostBuilderContext, KestrelServerOptions> configureOptions) => hostBuilder.UseKestrel().ConfigureKestrel(configureOptions);
/// <summary> /// Specify Kestrel as the server to be used by the game host. /// </summary> /// <param name="hostBuilder"> /// The Contoso.GameNetCore.Hosting.IGameHostBuilder to configure. /// </param> /// <param name="options"> /// A callback to configure Kestrel options. /// </param> /// <returns> /// The Contoso.GameNetCore.Hosting.IGameHostBuilder. /// </returns> public static IGameHostBuilder UseKestrel(this IGameHostBuilder hostBuilder, Action <KestrelServerOptions> options) => hostBuilder.UseKestrel().ConfigureKestrel(options);