/// <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;
 }
Пример #2
0
 public MessageHandler(IAzureCloudStorageService azureCloudStorageService, ICsvParser csvParser, IConfiguration configuration, IServiceBusService serviceBusService)
 {
     _azureCloudStorageService = azureCloudStorageService;
     _csvParser         = csvParser;
     _configuration     = configuration;
     _serviceBusService = serviceBusService;
 }
Пример #3
0
 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));
 }
Пример #5
0
 public ProductionController(
     IProductionService service
     , IServiceBusService serviceBusService)
 {
     _service           = service;
     _serviceBusService = serviceBusService;
 }
Пример #6
0
 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;
 }
Пример #9
0
 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;
 }
Пример #10
0
 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;
 }
Пример #11
0
        /// <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);
        }
Пример #12
0
        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();
        }
Пример #13
0
 public DurableFunctionOrchestrator(IServiceBusService serviceBusService)
 {
     _serviceBusService = serviceBusService ?? throw new ArgumentNullException(nameof(serviceBusService));
 }
Пример #14
0
 public SubmissionService(IGenericRepository <SubmissionVM> repo, IServiceBusService serviceBusService, IBackgroundJobClient backgroundJobClient)
 {
     _repo = repo;
     _serviceBusService   = serviceBusService;
     _backgroundJobClient = backgroundJobClient;
 }
 public ServiceBusController(IServiceBusService serviceBusService)
 {
     _serviceBusService = serviceBusService;
 }
Пример #16
0
 public AlertNotificationRequestService(RequestContext requestContext, QueueNameInfo queueNameInfo, IServiceBusService serviceBusService)
 {
     _requestContext    = requestContext;
     _queueNameInfo     = queueNameInfo;
     _serviceBusService = serviceBusService;
 }
Пример #17
0
 public FuncBase(IServiceBusService serviceBusHelper, IDatabaseService databaseHelper, ILogger <FuncBase> logger)
 {
     this.sbService = serviceBusHelper;
     this.dbService = databaseHelper;
     this.logger    = logger;
 }
Пример #18
0
 public UserService(IEncryptionService cryptoService, string publicKey, IServiceBusService serviceBusService)
 {
     _CryptoService     = cryptoService;
     _PublicKey         = publicKey;
     _ServiceBusService = serviceBusService;
 }
Пример #19
0
 public StatusService(IServiceBusService serviceBusService)
 {
     _ServiceBusService = serviceBusService;
 }
 public FormController(IProductService ps, IServiceBusService sbs)
 {
     this.ps = ps;
     this.sbs = sbs;
 }
Пример #21
0
 public CategoryService(IServiceBusService serviceBusService)
 {
     _ServiceBusService = serviceBusService;
 }
Пример #22
0
 public Worker(ILogger <Worker> logger, IServiceBusService serviceBusService)
 {
     _logger            = logger;
     _serviceBusService = serviceBusService ?? throw new ArgumentNullException(nameof(serviceBusService));
 }
Пример #23
0
 public InputHandler(IServiceBusService serviceBusHelper, IDatabaseService databaseHelper, ILogger <InputHandler> logger)
     : base(serviceBusHelper, databaseHelper, logger)
 {
 }