예제 #1
0
 /// <summary>
 /// Adds the host factory for asp net core hosted on https
 /// </summary>
 /// <param name="builder">The testing server builder</param>
 /// <param name="hostname">The hostname for the in memory host</param>
 /// <returns>The testing server builder</returns>
 public static TestingServerBuilder AddAspNetCoreHttpsHostFactory(this TestingServerBuilder builder, string hostname)
 => builder.AddAspNetCoreHttpsHostFactory(hostname, _ => { });
예제 #2
0
 /// <summary>
 /// Adds the host factory for asp net core hosted on https
 /// </summary>
 /// <param name="builder">The testing server builder</param>
 /// <param name="configure">Configuration delegate for the web host</param>
 /// <returns>The testing server builder</returns>
 public static TestingServerBuilder AddAspNetCoreHttpsHostFactory(this TestingServerBuilder builder, Action <IWebHostBuilder> configure)
 => builder.AddAspNetCoreHttpsHostFactory(_defaultHostName, configure);
예제 #3
0
 /// <summary>
 /// Adds the host factory for asp net core hosted on https
 /// </summary>
 /// <param name="builder">The testing server builder</param>
 /// <returns>The testing server builder</returns>
 public static TestingServerBuilder AddAspNetCoreHttpsHostFactory(this TestingServerBuilder builder)
 => builder.AddAspNetCoreHttpsHostFactory(_defaultHostName);