ข้ามไปยังเนื้อหา

Class AuditHistoryExportHttpResponseExtensions

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.AspNetCore.Hosting
Assembly: Cephalon.AspNetCore.dll

Writes audit-history export responses for ASP.NET Core hosts.

public static class AuditHistoryExportHttpResponseExtensions

objectAuditHistoryExportHttpResponseExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

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)

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.

Task

A task that completes when the response has been written.