20 lines
557 B
C#
20 lines
557 B
C#
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Configuration;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Yi.Framework.Infrastructure.AspNetCore
|
|
{
|
|
public static class StratUrlsExtensions
|
|
{
|
|
public static IWebHostBuilder UseStartUrlsServer(this IWebHostBuilder hostBuilder, IConfiguration configuration, string option = "StartUrl")
|
|
{
|
|
return hostBuilder.UseUrls(configuration.GetValue<string>(option));
|
|
}
|
|
|
|
}
|
|
}
|