chore 优化代码
This commit is contained in:
		| @ -1,8 +1,8 @@ | ||||
| using Microsoft.Extensions.Hosting; | ||||
| using System.Threading; | ||||
| using System.Threading.Tasks; | ||||
| using Microsoft.Extensions.Configuration; | ||||
| using Microsoft.Extensions.DependencyInjection; | ||||
| using Microsoft.Extensions.Hosting; | ||||
| using Volo.Abp; | ||||
|  | ||||
| namespace KonSoft.Dispatch.HttpApi.Client.ConsoleTestApp; | ||||
| @ -19,10 +19,10 @@ public class ConsoleTestAppHostedService : IHostedService | ||||
|     public async Task StartAsync(CancellationToken cancellationToken) | ||||
|     { | ||||
|         using (var application = await AbpApplicationFactory.CreateAsync<DispatchConsoleApiClientModule>(options => | ||||
|         { | ||||
|            options.Services.ReplaceConfiguration(_configuration); | ||||
|            options.UseAutofac(); | ||||
|         })) | ||||
|                { | ||||
|                    options.Services.ReplaceConfiguration(_configuration); | ||||
|                    options.UseAutofac(); | ||||
|                })) | ||||
|         { | ||||
|             await application.InitializeAsync(); | ||||
|  | ||||
| @ -37,4 +37,4 @@ public class ConsoleTestAppHostedService : IHostedService | ||||
|     { | ||||
|         return Task.CompletedTask; | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user