Class PipelinePublishRejectedEventArgs<T>
Contains data for publish-rejected notifications.
public sealed class PipelinePublishRejectedEventArgs<T> where T : PipelineRecord
Type Parameters
TThe rejected record type.
- Inheritance
-
PipelinePublishRejectedEventArgs<T>
- Inherited Members
Constructors
PipelinePublishRejectedEventArgs(T, PipelinePublishResultReason, DateTimeOffset, PipelineRecordDiagnosticContext?)
Initializes a new publish-rejected payload.
public PipelinePublishRejectedEventArgs(T record, PipelinePublishResultReason reason, DateTimeOffset observedAtUtc, PipelineRecordDiagnosticContext? diagnostic = null)
Parameters
recordTreasonPipelinePublishResultReasonobservedAtUtcDateTimeOffsetdiagnosticPipelineRecordDiagnosticContext
Properties
Diagnostic
Gets the diagnostic context for the record, if one exists.
public PipelineRecordDiagnosticContext? Diagnostic { get; }
Property Value
ObservedAtUtc
Gets the time the rejection was observed.
public DateTimeOffset ObservedAtUtc { get; }
Property Value
Reason
Gets the rejection reason.
public PipelinePublishResultReason Reason { get; }
Property Value
Record
Gets the rejected record.
public T Record { get; }
Property Value
- T