Table of Contents

Class PipelinePublishRejectedEventArgs<T>

Namespace
Pipelinez.Core.Eventing
Assembly
Pipelinez.dll

Contains data for publish-rejected notifications.

public sealed class PipelinePublishRejectedEventArgs<T> where T : PipelineRecord

Type Parameters

T

The 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

record T
reason PipelinePublishResultReason
observedAtUtc DateTimeOffset
diagnostic PipelineRecordDiagnosticContext

Properties

Diagnostic

Gets the diagnostic context for the record, if one exists.

public PipelineRecordDiagnosticContext? Diagnostic { get; }

Property Value

PipelineRecordDiagnosticContext

ObservedAtUtc

Gets the time the rejection was observed.

public DateTimeOffset ObservedAtUtc { get; }

Property Value

DateTimeOffset

Reason

Gets the rejection reason.

public PipelinePublishResultReason Reason { get; }

Property Value

PipelinePublishResultReason

Record

Gets the rejected record.

public T Record { get; }

Property Value

T