Exemple #1
0
 public BootStrapper(DaemonConfiguration configuration, IBus bus, Watcher minionWatcher)
 {
     Configuration = configuration.BootStrapConfiguration;
     Bus           = bus;
     MinionWatcher = minionWatcher;
     bus.AddLocalChannel(x => x
                         .CorrelateBy <NewApplication>(m => m.DirectoryPath)
                         .CorrelateBy <ApplicationChanged>(m => m.DirectoryPath)
                         .CorrelateBy <ApplicationDeleted>(m => m.DirectoryPath));
 }
Exemple #2
0
 public BootStrapper( DaemonConfiguration configuration, IBus bus, Watcher minionWatcher )
 {
     Configuration = configuration.BootStrapConfiguration;
     Bus = bus;
     MinionWatcher = minionWatcher;
     bus.AddLocalChannel( x => x
                         .CorrelateBy<NewApplication>( m => m.DirectoryPath )
                         .CorrelateBy<ApplicationChanged>( m => m.DirectoryPath )
                         .CorrelateBy<ApplicationDeleted>( m => m.DirectoryPath ) );
 }
Exemple #3
0
 public Service(IBus bus)
 {
     Bus = bus;
     Bus.AddLocalChannel(x => x.CorrelateBy <Message>(m => m.To));
 }