Example #1
0
 public EgressOperation(Func <CancellationToken, Task <Stream> > action, string endpointName, string artifactName, IEndpointInfo source, string contentType, KeyValueLogScope scope)
 {
     _egress         = (service, token) => service.EgressAsync(endpointName, action, artifactName, contentType, source, token);
     _egressProvider = endpointName;
     _scope          = scope;
 }
 public CollectDumpAction(IServiceProvider serviceProvider, IEndpointInfo endpointInfo, CollectDumpOptions options)
     : base(endpointInfo, options)
 {
     _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
     _dumpService     = serviceProvider.GetRequiredService <IDumpService>();
 }
Example #3
0
 public BusSender(IEndpointInfo conf)
 {
     this.conf = conf;
 }
 public EgressStreamResult(Func <Stream, CancellationToken, Task> action, string endpointName, string artifactName, IEndpointInfo source, string contentType, KeyValueLogScope scope)
 {
     _egress = (service, token) => service.EgressAsync(endpointName, action, artifactName, contentType, source, token);
     _scope  = scope;
 }