protected override void ConfigureGrpcBus(IGrpcBusFactoryConfigurator configurator) { configurator.ReceiveEndpoint(e => { _handled = Handled <Fault <MemberUpdateCommand> >(e); }); }
protected override void ConfigureGrpcBus(IGrpcBusFactoryConfigurator configurator) { configurator.Message <Message>(x => x.SetEntityName(ExchangeName)); configurator.Publish <Message>(x => x.ExchangeType = ExchangeType.Direct); configurator.Send <Message>(x => x.UseRoutingKeyFormatter(context => GetRoutingKey(context.Message.RoutingKey))); }
protected override void ConfigureGrpcBus(IGrpcBusFactoryConfigurator configurator) { ISymmetricKeyProvider keyProvider = new TestSymmetricKeyProvider("secure"); var streamProvider = new AesCryptoStreamProvider(keyProvider, "default"); configurator.UseEncryptedSerializer(streamProvider); base.ConfigureGrpcBus(configurator); }
protected override void ConfigureGrpcBus(IGrpcBusFactoryConfigurator configurator) { configurator.UseDelayedMessageScheduler(); var options = new ServiceInstanceOptions() .SetEndpointNameFormatter(KebabCaseEndpointNameFormatter.Instance); configurator.ServiceInstance(options, instance => { instance.ConfigureJobServiceEndpoints(_jobServiceOptions); }); }
protected override void ConfigureGrpcBus(IGrpcBusFactoryConfigurator configurator) { var key = new byte[] { 31, 182, 254, 29, 98, 114, 85, 168, 176, 48, 113, 206, 198, 176, 181, 125, 106, 134, 98, 217, 113, 158, 88, 75, 118, 223, 117, 160, 224, 1, 47, 162 }; configurator.UseEncryption(key); base.ConfigureGrpcBus(configurator); }
protected override void ConfigureGrpcBus(IGrpcBusFactoryConfigurator configurator) { configurator.UseDelayedMessageScheduler(); var options = new ServiceInstanceOptions() .SetEndpointNameFormatter(KebabCaseEndpointNameFormatter.Instance); configurator.ServiceInstance(options, instance => { instance.ConfigureJobServiceEndpoints(_jobServiceOptions); instance.ReceiveEndpoint(instance.EndpointNameFormatter.Message <EncodeVideo>(), e => { e.Consumer(() => new EncodeVideoConsumer(LoggerFactory.CreateLogger("EncodeVideo")), x => { x.Options <JobOptions <EncodeVideo> >(o => o.SetConcurrentJobLimit(5)); }); }); }); }
protected virtual void ConfigureGrpcBus(IGrpcBusFactoryConfigurator configurator) { }
protected override void ConfigureGrpcBus(IGrpcBusFactoryConfigurator configurator) { configurator.UseDelayedMessageScheduler(); }
protected virtual void ConfigureGrpcBus(IGrpcBusFactoryConfigurator configurator) { OnConfigureGrpcBus?.Invoke(configurator); }
protected virtual void ConfigureGrpcClientBus(IGrpcBusFactoryConfigurator configurator) { ConfigureBusDiagnostics(configurator); }