Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/NexusRpc/Handlers/OperationContext.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Threading;

Expand Down Expand Up @@ -47,5 +48,11 @@ public abstract record OperationContext(
/// This dictionary is expected to compare keys case-insensitively.
/// </remarks>
public IReadOnlyDictionary<string, string>? Headers { get; init; }

/// <summary>
/// Gets the deadline for the operation handler method. This is the time by which the method should
/// complete. This is not the operation's deadline.
/// </summary>
public DateTime? RequestDeadline { get; init; }
}
}