¶Ô±ÈÐÂÎļþ |
| | |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace WIDESEA_Core.Extensions |
| | | { |
| | | public static class InitializationHostServiceSetup |
| | | { |
| | | /// <summary> |
| | | /// åºç¨åå§åæå¡æ³¨å
¥ |
| | | /// </summary> |
| | | /// <param name="services"></param> |
| | | public static void AddInitializationHostServiceSetup(this IServiceCollection services) |
| | | { |
| | | if (services is null) |
| | | { |
| | | ArgumentNullException.ThrowIfNull(nameof(services)); |
| | | } |
| | | services.AddHostedService<SeedDataHostedService>();//ç§åæ°æ® |
| | | //services.AddHostedService<QuartzJobHostedService>(); |
| | | //services.AddHostedService<ConsulHostedService>(); |
| | | //services.AddHostedService<EventBusHostedService>(); |
| | | } |
| | | } |
| | | } |