示例#1
0
 /// <summary>
 /// Specify Simple 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 Simple options.</param>
 /// <returns>
 /// The Contoso.GameNetCore.Hosting.IGameHostBuilder.
 /// </returns>
 public static IGameHostBuilder UseSimple(this IGameHostBuilder hostBuilder, Action <GameHostBuilderContext, SimpleServerOptions> configureOptions) =>
 hostBuilder.UseSimple().ConfigureSimple(configureOptions);
示例#2
0
 /// <summary>
 /// Specify Simple 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 Simple options.
 /// </param>
 /// <returns>
 /// The Contoso.GameNetCore.Hosting.IGameHostBuilder.
 /// </returns>
 public static IGameHostBuilder UseSimple(this IGameHostBuilder hostBuilder, Action <SimpleServerOptions> options) => hostBuilder.UseSimple().ConfigureSimple(options);