Class AuditHistoryExportHttpResponseExtensions
Namespace: Cephalon.AspNetCore.Hosting
Assembly: Cephalon.AspNetCore.dll
Writes audit-history export responses for ASP.NET Core hosts.
public static class AuditHistoryExportHttpResponseExtensionsInheritance
Section titled “Inheritance”object ← AuditHistoryExportHttpResponseExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”WriteAuditHistoryNdjsonAsync(HttpResponse, IAuditHistoryExporter, AuditHistoryExportRequest, string?, CancellationToken)
Section titled “ WriteAuditHistoryNdjsonAsync(HttpResponse, IAuditHistoryExporter, AuditHistoryExportRequest, string?, CancellationToken)”Writes the supplied audit-history export as newline-delimited JSON.
public static Task WriteAuditHistoryNdjsonAsync(this HttpResponse response, IAuditHistoryExporter exporter, AuditHistoryExportRequest request, string? fileName = null, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”response HttpResponse
The HTTP response to populate.
exporter IAuditHistoryExporter
The audit-history exporter that supplies the entries.
request AuditHistoryExportRequest
The export request to execute.
fileName string?
An optional download file name.
cancellationToken CancellationToken
The token that cancels the response stream.
Returns
Section titled “Returns”A task that completes when the response has been written.