Table of Contents

Class OperationStartContext

Namespace
NexusRpc.Handlers
Assembly
NexusRpc.dll

Context provided when start is called.

public record OperationStartContext : OperationContext, IEquatable<OperationContext>, IEquatable<OperationStartContext>
Inheritance
OperationStartContext
Implements
Inherited Members

Constructors

OperationStartContext(string, string, CancellationToken, string)

Context provided when start is called.

public OperationStartContext(string Service, string Operation, CancellationToken CancellationToken, string RequestId)

Parameters

Service string

Service name.

Operation string

Operation name.

CancellationToken CancellationToken

Cancellation token for when this specific call is canceled (not to be confused with operation cancellation).

RequestId string

Unique identifier for this start call for deduplication.

Properties

CallbackHeaders

Gets headers to use on the callback if CallbackUrl is used.

public IReadOnlyDictionary<string, string>? CallbackHeaders { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Remarks

This dictionary is expected to compare keys case-insensitively.

CallbackUrl

Gets the ptional callback for asynchronous operations to deliver results to.

public string? CallbackUrl { get; init; }

Property Value

string

Remarks

If this is present and the implementation is an asynchronous operation, the implementation should ensure this callback is invoked with the result upon completion.

Gets links with arbitrary caller information.

public IReadOnlyCollection<NexusLink> InboundLinks { get; init; }

Property Value

IReadOnlyCollection<NexusLink>

RequestId

Unique identifier for this start call for deduplication.

public string RequestId { get; init; }

Property Value

string