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)); }
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 ) ); }
public Service(IBus bus) { Bus = bus; Bus.AddLocalChannel(x => x.CorrelateBy <Message>(m => m.To)); }