Пример #1
0
 public InvokeMethodHandler(ICachingService cachingService, IHubContext <MessageQueueHub> hubContext, StreamFlowConfiguration streamFlowConfiguration, IHelperService helperService)
 {
     _helperService           = helperService;
     _cachingService          = cachingService;
     _hubContext              = hubContext;
     _streamFlowConfiguration = streamFlowConfiguration;
 }
Пример #2
0
 public DequeueMessagesHandler(ICachingService cachingService, IHubContext <MessageQueueHub> hubContext,
                               StreamFlowConfiguration streamFlowConfiguration, IMediator mediator)
 {
     _mediator                = mediator;
     _cachingService          = cachingService;
     _hubContext              = hubContext;
     _streamFlowConfiguration = streamFlowConfiguration;
 }
Пример #3
0
        public void InstallServices(IServiceCollection services, IConfiguration configuration)
        {
            services.AddSignalR(o => o.MaximumReceiveMessageSize = 5242880)
            .AddMessagePackProtocol(o => o.SerializerOptions.WithCompression(MessagePackCompression.Lz4BlockArray));

            services.AddResponseCompression(opts =>
            {
                opts.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(
                    new[] { "application/octet-stream" });
            });

            var streamFlowConfiguration = new StreamFlowConfiguration();

            configuration.Bind(nameof(streamFlowConfiguration), streamFlowConfiguration);
            services.AddSingleton(streamFlowConfiguration);
        }
Пример #4
0
 public SignalRWrapper(StreamFlowConfiguration configuration) : base(configuration)
 {
 }
Пример #5
0
 public InvokeMethodResponseHandler(ICachingService cachingService, IHubContext <MessageQueueHub> hubContext, StreamFlowConfiguration streamFlowConfiguration)
 {
     _cachingService          = cachingService;
     _hubContext              = hubContext;
     _streamFlowConfiguration = streamFlowConfiguration;
 }
Пример #6
0
 public RegisterClientHandler(ICachingService cachingService, IHubContext <MessageQueueHub> hubContext, StreamFlowConfiguration streamFlowConfiguration)
 {
     _cachingService          = cachingService;
     _hubContext              = hubContext;
     _streamFlowConfiguration = streamFlowConfiguration;
 }
Пример #7
0
 public PushMessageHandler(ICachingService cachingService, IHubContext <MessageQueueHub> hubContext, StreamFlowConfiguration streamFlowConfiguration)
 {
     _streamFlowConfiguration = streamFlowConfiguration;
     _hubContext     = hubContext;
     _cachingService = cachingService;
 }