/// <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, _ => { });
/// <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);
/// <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);