public ConcurrencyExecutionAsyncCommandBus(IAsyncCommandBus innerCommandBus)
 {
     if (innerCommandBus == null)
     {
         throw new ArgumentNullException("innerCommandBus");
     }
     _innerCommandBus = innerCommandBus;
 }
예제 #2
0
 public ExecuteOnSchedulerCommandBus(IAsyncCommandBus commandBus)
 {
     if (commandBus == null)
     {
         throw new ArgumentNullException("commandBus");
     }
     _commandBus = commandBus;
 }
예제 #3
0
 public PerformanceAsyncCommandBus(IAsyncCommandBus innerCommandBus)
 {
     if (innerCommandBus == null)
     {
         throw new ArgumentNullException("innerCommandBus");
     }
     _innerCommandBus = innerCommandBus;
 }
예제 #4
0
 public DebuggerAsyncCommandBus(IAsyncCommandBus innerCommandBus)
 {
     if (innerCommandBus == null)
     {
         throw new ArgumentNullException("innerCommandBus");
     }
     _innerCommandBus = innerCommandBus;
 }
예제 #5
0
 public CompositeCommandBus(
     IAsyncHubCommandBus hubCommandBus,
     IAsyncCommandBus serviceCommandBus,
     IAppSettings appSettings)
 {
     _hubCommandBus     = hubCommandBus;
     _serviceCommandBus = serviceCommandBus;
     _appSettings       = appSettings;
 }
예제 #6
0
 public NotifyEventsAsyncCommandBus(IAsyncCommandBus innerAsyncCommandBus, ICommandEvents commandEvents)
 {
     if (innerAsyncCommandBus == null)
     {
         throw new ArgumentNullException("innerAsyncCommandBus");
     }
     if (commandEvents == null)
     {
         throw new ArgumentNullException("commandEvents");
     }
     _innerAsyncCommandBus = innerAsyncCommandBus;
     _commandEvents        = commandEvents;
 }
예제 #7
0
 public NotifyCommandStateBus(
     IAsyncCommandBus commandBus,
     IScheduler scheduler)
 {
     if (commandBus == null)
     {
         throw new ArgumentNullException("commandBus");
     }
     if (scheduler == null)
     {
         throw new ArgumentNullException("scheduler");
     }
     _commandBus        = commandBus;
     _scheduler         = scheduler;
     _executingCommands = new List <IAsyncCommand>();
 }
예제 #8
0
		public ViewModelServices(
			IRuleProvider ruleProvider,
			IObservableRegistrationService observableRegistration,
			IValidator validator,
			ISchedulers schedulers,
			INavigationService navigationService,
			IRequestNavigation requestNavigation,
			IAsyncCommandBus commandBus,
			IAsyncQueryBus queryBus,
			ICommandEvents commandEvents,
			ICommandStateEvents commandStateEvents,
			IQueryStateEvents queryStateEvents)
		{
			if (ruleProvider == null) throw new ArgumentNullException("ruleProvider");
			if (observableRegistration == null) throw new ArgumentNullException("observableRegistration");
			if (validator == null) throw new ArgumentNullException("validator");
			if (schedulers == null) throw new ArgumentNullException("schedulers");
			if (navigationService == null) throw new ArgumentNullException("navigationService");
			if (requestNavigation == null) throw new ArgumentNullException("requestNavigation");
			if (commandBus == null) throw new ArgumentNullException("commandBus");
			if (queryBus == null) throw new ArgumentNullException("queryBus");
			if (commandEvents == null) throw new ArgumentNullException("commandEvents");
			if (commandStateEvents == null) throw new ArgumentNullException("commandStateEvents");
			if (queryStateEvents == null) throw new ArgumentNullException("queryStateEvents");
			Schedulers = schedulers;
			Validator = validator;
			ObservableRegistration = observableRegistration;
			RuleProvider = ruleProvider;
			CommandStateEvents = commandStateEvents;
			QueryStateEvents = queryStateEvents;
			CommandEvents = commandEvents;
			QueryBus = queryBus;
			CommandBus = commandBus;
			RequestNavigation = requestNavigation;
			NavigationService = navigationService;
		}
예제 #9
0
 public ViewModelServices(
     IRuleProvider ruleProvider,
     IObservableRegistrationService observableRegistration,
     IValidator validator,
     ISchedulers schedulers,
     INavigationService navigationService,
     IRequestNavigation requestNavigation,
     IAsyncCommandBus commandBus,
     IAsyncQueryBus queryBus,
     ICommandEvents commandEvents,
     ICommandStateEvents commandStateEvents,
     IQueryStateEvents queryStateEvents)
 {
     if (ruleProvider == null)
     {
         throw new ArgumentNullException("ruleProvider");
     }
     if (observableRegistration == null)
     {
         throw new ArgumentNullException("observableRegistration");
     }
     if (validator == null)
     {
         throw new ArgumentNullException("validator");
     }
     if (schedulers == null)
     {
         throw new ArgumentNullException("schedulers");
     }
     if (navigationService == null)
     {
         throw new ArgumentNullException("navigationService");
     }
     if (requestNavigation == null)
     {
         throw new ArgumentNullException("requestNavigation");
     }
     if (commandBus == null)
     {
         throw new ArgumentNullException("commandBus");
     }
     if (queryBus == null)
     {
         throw new ArgumentNullException("queryBus");
     }
     if (commandEvents == null)
     {
         throw new ArgumentNullException("commandEvents");
     }
     if (commandStateEvents == null)
     {
         throw new ArgumentNullException("commandStateEvents");
     }
     if (queryStateEvents == null)
     {
         throw new ArgumentNullException("queryStateEvents");
     }
     Schedulers             = schedulers;
     Validator              = validator;
     ObservableRegistration = observableRegistration;
     RuleProvider           = ruleProvider;
     CommandStateEvents     = commandStateEvents;
     QueryStateEvents       = queryStateEvents;
     CommandEvents          = commandEvents;
     QueryBus          = queryBus;
     CommandBus        = commandBus;
     RequestNavigation = requestNavigation;
     NavigationService = navigationService;
 }