public BoardTaskController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher,
     IHyperMediaFactory hyperMediaFactory)
 {
     this.commandDispatcher = commandDispatcher;
     this.queryDispatcher = queryDispatcher;
     this.hyperMediaFactory = hyperMediaFactory;
 }
        /// <summary>
        /// Creates an instance of QueryRunner using the provided dispatcher
        /// </summary>
        /// <param name="queryDispatcher">The dispatcher used to send commands</param>
        protected QueryRunnerBase(IQueryDispatcher queryDispatcher)
        {
            if (queryDispatcher == null)
                throw new ArgumentNullException("queryDispatcher");

            Dispatcher = queryDispatcher;
            Dispatcher.NotificationReceived += Dispatcher_NotificationReceived;
        }
        public OrderCreatorHub(ICommandDispatcher commandDispatcher, ICommandResponseWatcher commandResponseWatcher, IQueryDispatcher queryDispatcher, IConnectionManager connectionManager)
        {
            _commandDispatcher = commandDispatcher;
            _queryDispatcher = queryDispatcher;
            _connectionManager = connectionManager;

            commandResponseWatcher.ResponseReceived += CommandResponseReceived;
        }
 public PaymentController(IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher, IAddressProvider addressProvider, ICreditCardService creditCardService, IPayPalService paypalService)
 {
     this._queryDispatcher = queryDispatcher;
     this._commandDispatcher = commandDispatcher;
     this._addressProvider = addressProvider;
     this._creditCardService = creditCardService;
     this._paypalService = paypalService;
 }
        public ApplicationsModule(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
        {
            _commandDispatcher = commandDispatcher;
            _queryDispatcher = queryDispatcher;

            Get["/api/applications"] = p => GetApplications();
            Post["/api/applications"] = p => PostApplication();
            Put["/api/applications"] = p => PutApplication();
            Delete["/api/applications"] = p => DeleteApplication();
        }
Beispiel #6
0
 public ResourcesModule(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
 {
     _commandDispatcher = commandDispatcher;
     _queryDispatcher = queryDispatcher;
     Get["/api/resource"] = r => GetResource();
     Get["/api/resources"] = r => GetResources();
     Post["/api/resources"] = r => CreateResource();
     Post["/api/resources/generate"] = r => GenerateResources();
     Put["/api/resources"] = r => UpdateResource();
     Delete["api/resources"] = r => DeleteResource();
 }
Beispiel #7
0
        public FeaturesModule(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
        {
            _commandDispatcher = commandDispatcher;
            _queryDispatcher = queryDispatcher;

            Post["/api/features"] = p => CreateFeature();
            Put["/api/features"] = p => UpdateFeature();
            Get["/api/features"] = p => GetFeatures();
            Get["/api/feature"] = p => GetFeature();
            Delete["/api/features"] = p => DeleteFeature();
        }
        public PayPalService(IPaymentGateway paymentGateway, ICommandDispatcher commandDispatcher, IMessageService messageService, IQueryDispatcher queryDispatcher, ILogger logger)
        {
            this._payPalUrl = ConfigurationManager.AppSettings["PayPal_Url"];
            this._payPalClientId = ConfigurationManager.AppSettings["PayPal_ClientId"];
            this._payPalSecret = ConfigurationManager.AppSettings["PayPal_Secret"];
            this._websiteUrl = ConfigurationManager.AppSettings["Website_Url"];

            if (ConfigurationManager.AppSettings["PayPal_IsSandbox"] != null)
            {
                this._isSandbox = bool.Parse(ConfigurationManager.AppSettings["PayPal_IsSandbox"]);
            }

            this._paymentGateway = paymentGateway;
            this._commandDispatcher = commandDispatcher;
            this._messageService = messageService;
            this._queryDispatcher = queryDispatcher;
            this._logger = logger;
        }
Beispiel #9
0
        public LigasModule(
            ICommandDispatcher commandDispatcher,
            IQueryDispatcher queryDispatcher)
            : base(commandDispatcher, queryDispatcher)
        {
            Get["/ligas"] = _ =>
            {
                var ligas = ExecuteQuery(new GetLigasQuery());

                return Response.AsJson(ligas);
            };

            Get["/ligas/{id:guid}"] = _ =>
            {
                var liga = ExecuteQuery(new GetLigaQuery(_.id));

                return Response.AsJson(liga);
            };

            Post["/ligas"] = _ =>
            {
                var form = Context.Request.Form;

                var ligaId = Guid.NewGuid();
                var command = new CreateLigaCommand
                {
                    Id = ligaId,
                    Name = form.name
                };
                ExecuteCommand(command);

                return Response.AsJson(ligaId);
            };

            Delete["/ligas/{id:guid}"] = _ =>
            {
                //@todo

                return Response.AsJson("");
            };
        }
 /// <summary>
 /// Patient controller declaration
 /// </summary>
 /// <param name="commandDispatcher"></param>
 /// <param name="queryDispatcher"></param>
 public PatientController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher) : base(commandDispatcher, queryDispatcher)
 {
 }
 public HireAvailabilityViewModelModelBinder(IQueryDispatcher queryDispatcher)
 {
     this._queryDispatcher = queryDispatcher;
 }
 public CutSpanSegmentsCommandHandler(IEventStore eventStore, IQueryDispatcher queryDispatcher, IExternalEventProducer externalEventProducer)
 {
     _eventStore            = eventStore;
     _queryDispatcher       = queryDispatcher;
     _externalEventProducer = externalEventProducer;
 }
 public PlaceAdditionalStructuresInSpanEquipmentCommandHandler(IEventStore eventStore, IQueryDispatcher queryDispatcher, IExternalEventProducer externalEventProducer)
 {
     _eventStore            = eventStore;
     _queryDispatcher       = queryDispatcher;
     _externalEventProducer = externalEventProducer;
 }
Beispiel #14
0
 public CreateSpecifications(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
 {
     _commandDispatcher = commandDispatcher;
     _queryDispatcher   = queryDispatcher;
 }
        public SpanEquipmentConnectTests(IEventStore eventStore, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher, IExternalEventProducer externalEventProducer)
        {
            _eventStore            = eventStore;
            _commandDispatcher     = commandDispatcher;
            _queryDispatcher       = queryDispatcher;
            _externalEventProducer = (FakeExternalEventProducer)externalEventProducer;

            new TestSpecifications(_commandDispatcher, _queryDispatcher).Run();
            new TestUtilityNetwork(_commandDispatcher, _queryDispatcher).Run();
        }
 internal ProjectControllerBuilder WithQueryDispatcher(IQueryDispatcher queryDispatcher)
 {
     this.queryDispatcher = queryDispatcher;
     return this;
 }
 public AccountController(IUserService userService, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher) : base(commandDispatcher, queryDispatcher)
 {
     _userService = userService;
 }
 public FinancialJournalEntryStorage(IQueryDispatcher dispatcher, Func <FinancialPlannerContext> contextFactory)
     : base(contextFactory, DaoMapper.Instance, DaoMapper.Instance)
 {
     _dispatcher = dispatcher;
 }
Beispiel #19
0
 public QueryExecutor(IQueryDispatcher dispatcher)
 {
     this.dispatcher = dispatcher;
 }
 public GlobalStatsGetRequestHandler(IQueryDispatcher queryDispatcher) => _queryDispatcher = queryDispatcher;
Beispiel #21
0
 public GradeController(ICommandDispatcher iCommandDispatcher, IQueryDispatcher iQueryDispatcher)
     : base(iCommandDispatcher, iQueryDispatcher)
 {
 }
 public UserController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher, IApplicationUserDtoConverter converter)
 {
     _commandDispatcher = commandDispatcher;
     _converter         = converter;
     _queryDispatcher   = queryDispatcher;
 }
 /// <summary>
 /// BaseApiController declaration, takes IQueryDispatcher and ICommandDispatcher as params
 /// </summary>
 /// <param name="commandDispatcher"></param>
 /// <param name="queryDispatcher"></param>
 public BaseApiController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
 {
     CommandDispatcher = commandDispatcher;
     QueryDispatcher = queryDispatcher;
 }
 public MemberModelBinder(IQueryDispatcher queryDispatcher)
 {
     this._queryDispatcher = queryDispatcher;
 }
Beispiel #25
0
 public SubrackPlacementInfoType(ILogger <SubrackPlacementInfoType> logger, IQueryDispatcher queryDispatcher)
 {
     Field(x => x.RackId, type: typeof(IdGraphType)).Description("Rack id");
     Field(x => x.StartUnitPosition, type: typeof(IntGraphType)).Description("Subrack start position (rack unit)");
     Field(x => x.PlacementMethod, type: typeof(SubrackPlacmentMethodType)).Description("Subrack placement method");
 }
 public TextModuleEventsHandler(ICacheManager cacheManager,
                                IQueryDispatcher queryDispatcher)
 {
     _cacheManager    = cacheManager;
     _queryDispatcher = queryDispatcher;
 }
Beispiel #27
0
 public BooksController(IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher, ILogger logger)
 {
     _queryDispatcher = queryDispatcher;
     _commandDispatcher = commandDispatcher;
     _logger = logger;
 }
Beispiel #28
0
 /// <summary>
 /// Initializes this object
 /// </summary>
 public StrategyItemResolver(IQueryDispatcher queryDispatcher)
 {
     _queryDispatcher = queryDispatcher;
 }
 public AccountController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
 {
     _commandDispatcher = commandDispatcher;
     _queryDispatcher = queryDispatcher;
 }
 public ConduitSpanEquipmentImporter(ILogger <ConduitSpanEquipmentImporter> logger, IEventStore eventSTore, GeoDatabaseSetting geoDatabaseSettings, ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher) : base(geoDatabaseSettings)
 {
     _logger            = logger;
     _eventStore        = eventSTore;
     _commandDispatcher = commandDispatcher;
     _queryDispatcher   = queryDispatcher;
 }
Beispiel #31
0
 public Dispatcher(IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher)
 {
     _queryDispatcher   = queryDispatcher;
     _commandDispatcher = commandDispatcher;
 }
Beispiel #32
0
 public RegistrationApiController(IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher)
 {
     _queryDispatcher   = queryDispatcher;
     _commandDispatcher = commandDispatcher;
 }
 public UserController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher) : base(commandDispatcher, queryDispatcher)
 {
 }
Beispiel #34
0
 public BaseController(IQueryDispatcher queryDispatcher)
 {
     _queryDispatcher = queryDispatcher;
 }
Beispiel #35
0
 public LocalesModules(IQueryDispatcher queryDispatcher)
 {
     _queryDispatcher = queryDispatcher;
     Get["/api/locales"] = r => GetLocales();
 }
Beispiel #36
0
 protected ApiControllerBase(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
 {
     _commandDispatcher = commandDispatcher;
     _queryDispatcher   = queryDispatcher;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="commandDispatcher"></param>
 /// <param name="queryDispatcher"></param>
 public AppointmentController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher) : base(commandDispatcher, queryDispatcher)
 {
 }
 public ProductController(IQueryDispatcher queryDispatcher)
 {
     this._queryDispatcher = queryDispatcher;
 }
Beispiel #39
0
 /// <summary>
 /// Creates an instance of QueryRunner using the provided dispatcher
 /// </summary>
 /// <param name="queryDispatcher">The dispatcher used to send commands</param>
 public QueryRunner(IQueryDispatcher queryDispatcher)
     : base(queryDispatcher)
 {
     Notifications = new Notifications(this);
 }
Beispiel #40
0
 public AdminController(IQueryDispatcher queryDispatcher)
 {
     _queryDispatcher = queryDispatcher;
 }
        public EmployeesGet(IQueryDispatcher dispatcher)
        {
            Guard.Against.Null(dispatcher, nameof(dispatcher));

            this.dispatcher = dispatcher;
        }
Beispiel #42
0
        public CurrencyEditViewModel(INavigator navigator, ICommandDispatcher commandDispatcher, MessageBuilder messageBuilder, IQueryDispatcher queryDispatcher, string uniqueCode, string symbol)
        {
            Ensure.NotNull(navigator, "navigator");
            Ensure.NotNull(commandDispatcher, "commandDispatcher");
            Ensure.NotNull(queryDispatcher, "queryDispatcher");
            this.queryDispatcher = queryDispatcher;
            UniqueCode           = uniqueCode;
            Symbol        = symbol;
            ExchangeRates = new SortableObservableCollection <ExchangeRateModel>();

            CreateCommands(navigator, commandDispatcher, messageBuilder);
            LoadExchangeRateList();
        }
 public MembershipController(IQueryDispatcher queryDispatcher, ILoginProvider loginProvider, ICommandDispatcher commandDispatcher)
 {
     this._queryDispatcher = queryDispatcher;
     this._loginProvider = loginProvider;
     this._commandDispatcher = commandDispatcher;
 }
 public RouteNetworkController(IQueryDispatcher queryDispatcher)
 {
     _queryDispatcher = queryDispatcher;
 }
 public CompetitionsController(IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher)
 {
     this._queryDispatcher = queryDispatcher;
     this._commandDispatcher = commandDispatcher;
 }
Beispiel #46
0
 public FeatureModel(IConfiguration config, IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher)
 {
     this.config            = config;
     this.queryDispatcher   = queryDispatcher;
     this.commandDispatcher = commandDispatcher;
 }
 public StudentController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
 {
     this.commandDispatcher = commandDispatcher;
     this.queryDispatcher = queryDispatcher;
 }
Beispiel #48
0
 public RoomsByAccommodationIdAndLanguageIdQuery(IQueryDispatcher queryDispatcher) : base(queryDispatcher)
 {
 }
Beispiel #49
0
 public BuyController(IQueryDispatcher queryDispatcher)
 {
     this._queryDispatcher = queryDispatcher;
 }
Beispiel #50
0
 public WaitController(ICommandDispatcher commands, IQueryDispatcher queries)
 {
     _commands = commands;
     _queries  = queries;
 }
 internal ProjectControllerBuilder()
 {
     this.mapper = new Mock<IMapper>().Object;
     this.queryDispatcher = new Mock<IQueryDispatcher>().Object;
     this.commandDispatcher = new Mock<ICommandDispatcher>().Object;
 }
Beispiel #52
0
 public GroupService(IDataStorage <Group> dataStorage, IQueryDispatcher disaptcher)
 {
     _dataStorage = dataStorage;
     _disaptcher  = disaptcher;
 }
Beispiel #53
0
 public TasksController(IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher)
 {
     _queryDispatcher = queryDispatcher;
     _commandDispatcher = commandDispatcher;
 }
 public AuthenticationService(IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher, IPermissionQueryDispatcher permQueryDispatcher)
 {
     _queryDispatcher     = queryDispatcher;
     _commandDispatcher   = commandDispatcher;
     _permQueryDispatcher = permQueryDispatcher;
 }
 public PartiesController(IQueryDispatcher queryDispatcher)
 {
     this._queryDispatcher = queryDispatcher;
 }
 public EmployeeController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher)
     : base(commandDispatcher, queryDispatcher)
 {
 }
Beispiel #57
0
 public GamesController(ICommandDispatcher commandDispatcher, IQueryDispatcher queryDispatcher, ILogger logger)
     : base(commandDispatcher, queryDispatcher, logger)
 {
 }
Beispiel #58
0
 public TagController(IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher)
 {
     _queryDispatcher   = queryDispatcher;
     _commandDispatcher = commandDispatcher;
 }
 public SearchController(IQueryDispatcher queryDispatcher, ICommandDispatcher commandDispatcher)
 {
     this._queryDispatcher = queryDispatcher;
     this._commandDispatcher = commandDispatcher;
 }
 public NewApprenticeIncentiveQueryController(IQueryDispatcher queryDispatcher) : base(queryDispatcher)
 {
 }