コード例 #1
0
 public StockController(
     IQueryDispatcher queryDispatcher,
     ICommandDispatcher commandDispatcher,
     IQuotationServiceClient quotationServiceClient)
 {
     _queryDispatcher        = queryDispatcher;
     _commandDispatcher      = commandDispatcher;
     _quotationServiceClient = quotationServiceClient;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateQuotationsScheduledJob" /> class.
 /// </summary>
 /// <param name="queryDispatcher">The query dispatcher.</param>
 /// <param name="commandDispatcher">The command dispatcher.</param>
 /// <param name="quotationServiceClient">The quotation service client.</param>
 public UpdateQuotationsScheduledJob(
     IQueryDispatcher queryDispatcher,
     ICommandDispatcher commandDispatcher,
     IQuotationServiceClient quotationServiceClient)
 {
     _queryDispatcher        = queryDispatcher;
     _commandDispatcher      = commandDispatcher;
     _quotationServiceClient = quotationServiceClient;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestDataController" /> class.
 /// </summary>
 /// <param name="commandDispatcher">The command dispatcher.</param>
 /// <param name="queryDispatcher">The query dispatcher.</param>
 /// <param name="quoteServiceClient">The quote service client.</param>
 /// <param name="dataDeletionCoordinator">The data deletion coordinator.</param>
 public TestDataController(
     ICommandDispatcher commandDispatcher,
     IQueryDispatcher queryDispatcher,
     IQuotationServiceClient quoteServiceClient,
     IModelRepositoryDeletionCoordinator dataDeletionCoordinator)
 {
     _commandDispatcher       = commandDispatcher;
     _queryDispatcher         = queryDispatcher;
     _quoteServiceClient      = quoteServiceClient;
     _dataDeletionCoordinator = dataDeletionCoordinator;
 }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="QuotationHub" /> class.
        /// </summary>
        public QuotationHub()
        {
            _quotationServiceClient = DependencyResolver.Current.GetService <IQuotationServiceClient>();

            BroadcastQuotationServiceStatus();
        }