Savorboard пре 7 година
родитељ
комит
52085b2973
1 измењених фајлова са 2 додато и 5 уклоњено
  1. +2
    -5
      src/DotNetCore.CAP/IBootstrapper.Default.cs

+ 2
- 5
src/DotNetCore.CAP/IBootstrapper.Default.cs Прегледај датотеку

@@ -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());


Loading…
Откажи
Сачувај