public MessageQueueService( IServiceBusClient serviceBusClient, ILogger logger) { _serviceBusClient = serviceBusClient; _logger = logger; }
public OrderPaidNotificationHandler( ILogger <OrderPaidEvent> logger, IServiceBusClient serviceBusClient) : base(logger) { _serviceBusClient = serviceBusClient; }
public static async Task PublishGameCreatedAsync( this IServiceBusClient serviceBusClient, GameCreatedMessage account) { await serviceBusClient.PublishAsync( account, GameServiceBusConstants.GameCreatedLabel, GameServiceBusConstants.GameTopicName); }
public ButtonService(IOptions <ButtonServiceOptions> config, IEventRestService eventRestService, IAzureServiceBusClient azureBusManagerClient, IServiceBusClient serviceBus, ILogger <ButtonService> logger) { _config = config.Value; _logger = logger; _eventRestService = eventRestService; _azureBusManagerClient = azureBusManagerClient; _serviceBus = serviceBus; }
public static async Task PublishAccountUpdatedAsync( this IServiceBusClient serviceBusClient, AccountUpdatedMessage account) { await serviceBusClient.PublishAsync( account, AccountServiceBusConstants.AccountUpdatedLabel, AccountServiceBusConstants.AccountTopicName); }
public RateUpdatedNotificationHandler( ILogger <RateUpdatedEvent> logger, IRateService rateService, IServiceBusClient serviceBusClient) : base(logger) { _rateService = rateService; _serviceBusClient = serviceBusClient; }
public static async Task PublishGameRatingUpdatedAsync( this IServiceBusClient serviceBusClient, GameRatingUpdatedMessage gameRating) { await serviceBusClient.PublishAsync( gameRating, RateServiceBusConstants.GameRatingUpdatedLabel, RateServiceBusConstants.GameTopicName); }
public static async Task PublishOrderPaidAsync( this IServiceBusClient serviceBusClient, OrderPaidMessage message) { await serviceBusClient.PublishAsync( message, PaymentServiceBusConstants.OrderPaidLabel, PaymentServiceBusConstants.OrderTopicName); }
public OrderGameAddedNotificationHandler( ILogger <GameAddedToOrderEvent> logger, IOrderService orderService, IServiceBusClient serviceBusClient) : base(logger) { _orderService = orderService; _serviceBusClient = serviceBusClient; }
public StandardFixture() { Context = new GenocsContext(); AccountRepository = new AccountRepository(Context); CustomerRepository = new CustomerRepository(Context); UnitOfWork = new UnitOfWork(Context); EntityFactory = new EntityFactory(); ServiceBus = new FakeServiceBus(); }
public AdminService(IOptions <AdminServiceOptions> config, IEventRestService eventRestService, INoteRestService noteRestService, ITransportRestService transportRestService, IServiceBusClient serviceBus, ILogger <AdminService> logger) { _config = config.Value; _logger = logger; _eventRestService = eventRestService; _noteRestService = noteRestService; _transportRestService = transportRestService; _serviceBus = serviceBus; }
public CompleteOrderCommonHandler( ILogger <CompleteOrderCommand> logger, IMapper mapper, IOrderService orderService, IServiceBusClient serviceBusClient) : base(logger) { _mapper = mapper; _orderService = orderService; _serviceBusClient = serviceBusClient; }
public CreateAccountCommandHandler( IMapper mapper, IAccountService accountService, IValidator <CreateAccountCommand> validator, ILogger <CreateAccountCommand> logger, IServiceBusClient serviceBusClient) : base(validator, logger) { _mapper = mapper; _accountService = accountService; _serviceBusClient = serviceBusClient; }
public AddTemplateCommandHandler( IValidator validator, ILogger <AddTemplateCommand> logger, IMapper mapper, ITemplateService service, IServiceBusClient serviceBusClient) : base(validator, logger) { _mapper = mapper; _service = service; _serviceBusClient = serviceBusClient; }
public TransportService(IOptions <TransportServiceOptions> config, ITransportRestService transportRestService, IAzureServiceBusClient azureBusManagerClient, IServiceBusClient serviceBus, ILogger <TransportService> logger) { _config = config.Value; _logger = logger; _transportRestService = transportRestService; _azureBusManagerClient = azureBusManagerClient; _serviceBus = serviceBus; }
public ServiceBusClientTests() { _serializerMock = new Mock <IMessageSerializer>(); var nameFactoryMock = new Mock <INameFactory>(); var serviceBusClientSettingsMock = new Mock <IServiceBusClientSettings>(); var storageMock = new Mock <IChannelStorage>(); var channelMock = new Mock <IModel>(); storageMock.Setup(x => x.Get()).Returns(channelMock.Object); _client = new ServiceBusClient(_serializerMock.Object, storageMock.Object, nameFactoryMock.Object, serviceBusClientSettingsMock.Object); }
public CreateGameCommandHandler( IValidator <CreateGameCommand> validator, ILogger <CreateGameCommand> logger, IMapper mapper, IGameService service, IServiceBusClient serviceBusClient) : base(validator, logger) { _mapper = mapper; _service = service; _serviceBusClient = serviceBusClient; }
public CloseAccount( IOutputPort outputHandler, IAccountRepository accountRepository, IUnitOfWork unitOfWork, IServiceBusClient serviceBus, IApiClient orderApiClient) { _outputHandler = outputHandler; _accountRepository = accountRepository; _unitOfWork = unitOfWork; _serviceBus = serviceBus; _orderApiClient = orderApiClient; }
public Deposit( IEntityFactory entityFactory, IOutputPort outputHandler, IAccountRepository accountRepository, IUnitOfWork unitOfWork, IServiceBusClient serviceBus) { _entityFactory = entityFactory; _outputHandler = outputHandler; _accountRepository = accountRepository; _unitOfWork = unitOfWork; _serviceBus = serviceBus; }
private static async Task SendData(List <ExternalApiAuthor> authors, IServiceBusClient serviceBusClient) { foreach (var author in authors) { var message = new MessageModel { Author = author, Operation = ReadOrWrite.Write, }; await serviceBusClient.SendMessageAsync(message); } }
public Register( IEntityFactory entityFactory, IOutputPort outputHandler, ICustomerRepository customerRepository, IAccountRepository accountRepository, IUnitOfWork unityOfWork, IServiceBusClient serviceBus) { _entityFactory = entityFactory; _outputHandler = outputHandler; _customerRepository = customerRepository; _accountRepository = accountRepository; _unitOfWork = unityOfWork; _serviceBus = serviceBus; }
public F1( IBasicAuthService basicAuthService, IBlobStorageClientFactory blobStorageClientFactory, IServiceBusClientFactory serviceBusClientFactory, IConfigurationRoot configuration, ILoggerFactory loggerFactory) { this.basicAuthService = basicAuthService; this.configuration = configuration; this.blobStorageClient = blobStorageClientFactory.Create( new BlobStorageClientContext( this.configuration["StorageConnectionString"], this.configuration["StorageBlobContainerName"])); this.serviceBusClient = serviceBusClientFactory.Create( new ServiceBusClientContext( this.configuration["ServiceBusConnectionString"], this.configuration["ServiceBusQueueName"])); this.logger = loggerFactory.CreateLogger <F1>(); }
public AdviserDetailChangeFeedTrigger(IServiceBusClient serviceBusClient, ILoggerHelper loggerHelper) { _serviceBusClient = serviceBusClient; _loggerHelper = loggerHelper; }
public RegisterService(IServiceBusClient <ITopicClient> topicClient) { _topicClient = topicClient; }
public AccountUpdatedNotificationHandler(ILogger <AccountUpdatedEvent> logger, IMapper mapper, IServiceBusClient serviceBusClient) : base(logger) { _mapper = mapper; _serviceBusClient = serviceBusClient; }
public ServiceBusClient(IServiceBusClient <IMessage, ICommand, IEvent, IRequest, IResponse> serviceBusClient) { _serviceBusClient = serviceBusClient; }
public CustomerChangeFeedTrigger(IServiceBusClient serviceBusClient, ILoggerHelper loggerHelper) { _serviceBusClient = serviceBusClient; _loggerHelper = loggerHelper; }
public EmploymentProgressionChangeFeedTrigger(IServiceBusClient serviceBusClient, ILoggerHelper loggerHelper) { _serviceBusClient = serviceBusClient; _loggerHelper = loggerHelper; }
public static async Task PublishTemplateCreatedAsync( this IServiceBusClient serviceBusClient, TemplateCreatedMessage template) { await serviceBusClient.PublishAsync(template, TemplateCreatedLabel, TemplateTopicName); }
public AccountGrain( IServiceBusClient serviceBusClient) { this.serviceBusClient = serviceBusClient; }