コード例 #1
0
 public OutputStreamResult(Func <Stream, CancellationToken, Task> action, string contentType, string fileDownloadName, KeyValueLogScope scope)
 {
     _contentType      = contentType;
     _fileDownloadName = fileDownloadName;
     _action           = action;
     _scope            = scope;
 }
コード例 #2
0
 public static void AddEndpointInfo(this KeyValueLogScope scope, IEndpointInfo endpointInfo)
 {
     scope.Values.Add(
         ArtifactMetadataNames.ArtifactSource.ProcessId,
         endpointInfo.ProcessId.ToString(CultureInfo.InvariantCulture));
     scope.Values.Add(
         ArtifactMetadataNames.ArtifactSource.RuntimeInstanceCookie,
         endpointInfo.RuntimeInstanceCookie.ToString("N"));
 }
コード例 #3
0
 public static void AddArtifactType(this KeyValueLogScope scope, string artifactType)
 {
     scope.Values.Add("ArtifactType", artifactType);
 }
コード例 #4
0
 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;
 }