/// <summary> /// Initializes a new instance of the <see cref="WorkflowTriggerEventGridHandlerFunction"/> class. /// </summary> /// <param name="blobInfoFactoryService">Injected IBlobInfoFactoryService.</param> /// <param name="serviceBusService">Injected IServiceBusService.</param> public WorkflowTriggerEventGridHandlerFunction( IBlobInfoFactoryService blobInfoFactoryService, IServiceBusService serviceBusService) { _blobInfoFactoryService = blobInfoFactoryService; _serviceBusService = serviceBusService; }
public MessageHandler(IAzureCloudStorageService azureCloudStorageService, ICsvParser csvParser, IConfiguration configuration, IServiceBusService serviceBusService) { _azureCloudStorageService = azureCloudStorageService; _csvParser = csvParser; _configuration = configuration; _serviceBusService = serviceBusService; }
public PlatformServiceBusService(IServiceBusService serviceBusService, QueueNameInfo appSettingsQueueNameInfo, RequestContext requestContext) { _serviceBusService = serviceBusService; _appSettingsQueueNameInfo = appSettingsQueueNameInfo; _requestContext = requestContext; }
public TopicsController( IServiceBusService serviceBusService, ITopicRepository topicRepository) { _serviceBusService = serviceBusService ?? throw new ArgumentNullException(nameof(serviceBusService)); _topicRepository = topicRepository ?? throw new ArgumentNullException(nameof(topicRepository)); }
public ProductionController( IProductionService service , IServiceBusService serviceBusService) { _service = service; _serviceBusService = serviceBusService; }
public StudentsController(ILoggerManagerService logger, IStudentService studentService, IServiceBusService serviceBusService, IMapper mapper) { _logger = logger; _studentService = studentService; _serviceBusService = serviceBusService; _mapper = mapper; }
public QueueSupervisor(StatelessServiceContext context, IServiceBusService serviceBusService) : base(context) { _serviceBusService = serviceBusService ?? throw new ArgumentNullException(nameof(serviceBusService)); ServiceEventSource.Current.ServiceMessage(this.Context, "New Stateless Supervisor Created", _serviceBusService); _serviceBusService.Register(ProcessMessageAsync, new MessageHandlerOptions(MessageExceptionRecievedAsync)); }
public CatworkUserImagesController(ApplicationDbContext context, IBlobStorageService blobStorageService, IServiceBusService serviceBusService) { _context = context; _blobStorageService = blobStorageService; _serviceBusService = serviceBusService; }
public OrdersController(IStoreService storeService, IServiceBusService serviceBusService, ApplicationDbContext context, IConfiguration configuration, IHttpContextAccessor contextAccessor) { _storeService = storeService; _serviceBusService = serviceBusService; _context = context; bool.TryParse(configuration["UseIdentity"], out _useIdentity); _contextAccessor = contextAccessor; }
public CoursesController(ICoursesService coursesService, IStudentService studentService, IServiceBusService serviceBusService, IStudentSessionService studentSessionService, IMapper mapper, ILoggerManagerService logger) { _coursesService = coursesService; _studentService = studentService; _serviceBusService = serviceBusService; _serviceBusService = serviceBusService; _studentSessionService = studentSessionService; _logger = logger; _mapper = mapper; }
/// <summary> /// Получение клиента для шины с проверкой доступности. /// </summary> public static IServiceBusService GetSBClient() { if (_sbClient == null) { _sbClient = ChannelFactory.CreateChannel(); } try { _sbClient.IsUp(); } catch (Exception ex) { LogService.LogWarn($"{nameof(SBSenderHelper)}.{nameof(GetSBClient)}: service bus is not up. Trying to recreate channel.", ex); _sbClient = ChannelFactory.CreateChannel(); } return(_sbClient); }
public WcfServiceFixture() { // Arrange. var address = new Uri("http://localhost:12345/ServiceBusService"); SubManager = new Mock <ISubscriptionsManager>(); SendManager = new Mock <ISendingManager>(); RecManager = new Mock <IReceivingManager>(); service = new WcfService(SubManager.Object, SendManager.Object, RecManager.Object, GetMockLogger(), GetMockStatisticsService(), GetMockObjectRepository()) { UseWcfSettingsFromConfig = false, Binding = new BasicHttpBinding(), Address = address }; var binding = new BasicHttpBinding(); ServiceBus = new ChannelFactory <IServiceBusService>(binding, new EndpointAddress(address)).CreateChannel(); service.Start(); }
public DurableFunctionOrchestrator(IServiceBusService serviceBusService) { _serviceBusService = serviceBusService ?? throw new ArgumentNullException(nameof(serviceBusService)); }
public SubmissionService(IGenericRepository <SubmissionVM> repo, IServiceBusService serviceBusService, IBackgroundJobClient backgroundJobClient) { _repo = repo; _serviceBusService = serviceBusService; _backgroundJobClient = backgroundJobClient; }
public ServiceBusController(IServiceBusService serviceBusService) { _serviceBusService = serviceBusService; }
public AlertNotificationRequestService(RequestContext requestContext, QueueNameInfo queueNameInfo, IServiceBusService serviceBusService) { _requestContext = requestContext; _queueNameInfo = queueNameInfo; _serviceBusService = serviceBusService; }
public FuncBase(IServiceBusService serviceBusHelper, IDatabaseService databaseHelper, ILogger <FuncBase> logger) { this.sbService = serviceBusHelper; this.dbService = databaseHelper; this.logger = logger; }
public UserService(IEncryptionService cryptoService, string publicKey, IServiceBusService serviceBusService) { _CryptoService = cryptoService; _PublicKey = publicKey; _ServiceBusService = serviceBusService; }
public StatusService(IServiceBusService serviceBusService) { _ServiceBusService = serviceBusService; }
public FormController(IProductService ps, IServiceBusService sbs) { this.ps = ps; this.sbs = sbs; }
public CategoryService(IServiceBusService serviceBusService) { _ServiceBusService = serviceBusService; }
public Worker(ILogger <Worker> logger, IServiceBusService serviceBusService) { _logger = logger; _serviceBusService = serviceBusService ?? throw new ArgumentNullException(nameof(serviceBusService)); }
public InputHandler(IServiceBusService serviceBusHelper, IDatabaseService databaseHelper, ILogger <InputHandler> logger) : base(serviceBusHelper, databaseHelper, logger) { }