public OutputStreamResult(Func <Stream, CancellationToken, Task> action, string contentType, string fileDownloadName, KeyValueLogScope scope) { _contentType = contentType; _fileDownloadName = fileDownloadName; _action = action; _scope = scope; }
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")); }
public static void AddArtifactType(this KeyValueLogScope scope, string artifactType) { scope.Values.Add("ArtifactType", artifactType); }
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; }