コード例 #1
0
 public CommandContainer(
     IJsonTranslationService jsonTranslationService,
     IInformationPublisher informationPublisher)
 {
     _jsonTranslationService = jsonTranslationService;
     _informationPublisher   = informationPublisher;
 }
コード例 #2
0
 public CreateResourceFileRequestHandler(
     ILogger <CreateResourceFileRequestHandler> logger,
     IJsonTranslationService jsonTranslationService,
     IResourceService resourceService)
 {
     _logger = logger;
     _jsonTranslationService = jsonTranslationService;
     _resourceService        = resourceService;
 }
コード例 #3
0
        public MessageReciever(IBusFactory busFactory, IJsonTranslationService translationService)
        {
            this.translationService = translationService;

            var connectionDetails = new BusConnectionDetails("localhost");
            var syncRecieve = SubscriberDetails.Create<SyncronousMessageRequest, SyncronousMessageResponse>(SyncRecieve);
            var asyncRecieve = SubscriberDetails.Create<AsyncronousMessageRequest>(AsyncRecieve);

            busFactory.BootstrapService(connectionDetails, syncRecieve, asyncRecieve );
        }
コード例 #4
0
        public CustomerServiceReciever(IBusFactory busFactory, IJsonTranslationService translationService)
        {
            this.translationService = translationService;

            var connectionDetails = new BusConnectionDetails("localhost");
            var getCustomerDetails = SubscriberDetails.Create<CustomerIdentifier, Customer>(GetCustomer);
            var testDetails = SubscriberDetails.Create<string, string>(Test);
            var addCustomerDetails = SubscriberDetails.Create<Customer>(AddCustomer);

            busFactory.BootstrapService(connectionDetails, getCustomerDetails, addCustomerDetails, testDetails);
        }