Ver código fonte

refactor.

master
Savorboard 7 anos atrás
pai
commit
52085b2973
1 arquivos alterados com 2 adições e 5 exclusões
  1. +2
    -5
      src/DotNetCore.CAP/IBootstrapper.Default.cs

+ 2
- 5
src/DotNetCore.CAP/IBootstrapper.Default.cs Ver arquivo

@@ -25,14 +25,13 @@ namespace DotNetCore.CAP
IOptions<CapOptions> options,
IStorage storage,
IApplicationLifetime appLifetime,
IServiceProvider provider)
IEnumerable<IProcessingServer> servers)
{
_logger = logger;
_appLifetime = appLifetime;
Options = options.Value;
Storage = storage;
Provider = provider;
Servers = Provider.GetServices<IProcessingServer>();
Servers = servers;

_cts = new CancellationTokenSource();
_ctsRegistration = appLifetime.ApplicationStopping.Register(() =>
@@ -55,8 +54,6 @@ namespace DotNetCore.CAP

protected IEnumerable<IProcessingServer> Servers { get; }

public IServiceProvider Provider { get; private set; }

public Task BootstrapAsync()
{
return (_bootstrappingTask = BootstrapTaskAsync());


Carregando…
Cancelar
Salvar