¶Ô±ÈÐÂÎļþ |
| | |
| | | using Microsoft.AspNetCore.Builder; |
| | | using Microsoft.AspNetCore.Hosting; |
| | | using Microsoft.Extensions.Configuration; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.Extensions.Hosting; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace WIDESEA_Core.Core |
| | | { |
| | | public static class InternalApp |
| | | { |
| | | internal static IServiceCollection InternalServices; |
| | | |
| | | /// <summary>æ ¹æå¡</summary> |
| | | internal static IServiceProvider RootServices; |
| | | |
| | | /// <summary>è·åWeb主æºç¯å¢</summary> |
| | | internal static IWebHostEnvironment WebHostEnvironment; |
| | | |
| | | /// <summary>è·åæ³å主æºç¯å¢</summary> |
| | | internal static IHostEnvironment HostEnvironment; |
| | | |
| | | /// <summary>é
置对象</summary> |
| | | internal static IConfiguration Configuration; |
| | | |
| | | public static void ConfigureApplication(this WebApplicationBuilder wab) |
| | | { |
| | | HostEnvironment = wab.Environment; |
| | | WebHostEnvironment = wab.Environment; |
| | | InternalServices = wab.Services; |
| | | } |
| | | |
| | | public static void ConfigureApplication(this IConfiguration configuration) |
| | | { |
| | | Configuration = configuration; |
| | | } |
| | | |
| | | public static void ConfigureApplication(this IHost app) |
| | | { |
| | | RootServices = app.Services; |
| | | } |
| | | } |
| | | } |