Interface IActionContext
public interface IActionContext
- Extension Methods
Properties
ActionMethod
MethodInfo ActionMethod { get; }
Property Value
ActionName
string ActionName { get; set; }
Property Value
CancellationToken
Cancellation token for this request
CancellationToken CancellationToken { get; set; }
Property Value
ClientId
string? ClientId { get; }
Property Value
Configuration
IConfiguration Configuration { get; }
Property Value
ConnectionInfo
IClientConnectionInfo ConnectionInfo { get; }
Property Value
ConnectionType
ClientConnectionTypes ConnectionType { get; }
Property Value
EndpointAttributes
IReadOnlyList<Attribute> EndpointAttributes { get; }
Property Value
- IReadOnlyList<Attribute>
Features
IFeatureCollection Features { get; }
Property Value
InteropRequest
IPhotonInteropRequest InteropRequest { get; set; }
Property Value
InteropResponse
IPhotonInteropResponse InteropResponse { get; set; }
Property Value
IsCancellationRequested
Gets whether cancellation has been requested for this token.
bool IsCancellationRequested { get; }
Property Value
Items
IDictionary<object, object?> Items { get; set; }
Property Value
- IDictionary<object, object>
Logger
ILogger Logger { get; }
Property Value
Module
IFireflyModule Module { get; set; }
Property Value
Operation
StickyOperation Operation { get; }
Property Value
OperationId
string? OperationId { get; }
Property Value
PhotonId
PhotonId PhotonId { get; }
Property Value
PhotonRequest
IPhotonRequest PhotonRequest { get; set; }
Property Value
PhotonResponse
IPhotonResponse PhotonResponse { get; set; }
Property Value
PushClientId
string? PushClientId { get; }
Property Value
RayId
RayId RayId { get; }
Property Value
Request
IPhotonActionRequest Request { get; set; }
Property Value
Response
IPhotonActionResponse Response { get; set; }
Property Value
Services
IServiceProvider Services { get; set; }
Property Value
User
ClaimsPrincipal User { get; set; }
Property Value
Methods
AddTraceEvent(string)
Add tracing event
void AddTraceEvent(string name)
Parameters
name
string
AddTraceEvent(string, LogLevel)
Add tracing event
void AddTraceEvent(string name, LogLevel type)
Parameters
AddTraceEvent(string, LogLevel, Dictionary<string, object?>?)
Add tracing event
void AddTraceEvent(string name, LogLevel type, Dictionary<string, object?>? tags)
Parameters
name
stringtype
LogLeveltags
Dictionary<string, object>
AddTraceEvent(string, LogLevel, Dictionary<string, object?>?, DateTimeOffset)
Add tracing event
void AddTraceEvent(string name, LogLevel type, Dictionary<string, object?>? tags, DateTimeOffset timestamp)
Parameters
name
stringtype
LogLeveltags
Dictionary<string, object>timestamp
DateTimeOffset
AddTraceEvent(string, Dictionary<string, object?>?)
Add tracing event
void AddTraceEvent(string name, Dictionary<string, object?>? tags)
Parameters
name
stringtags
Dictionary<string, object>
AddTraceEvent(string, Dictionary<string, object?>?, DateTimeOffset)
Add tracing event
void AddTraceEvent(string name, Dictionary<string, object?>? tags, DateTimeOffset timestamp)
Parameters
name
stringtags
Dictionary<string, object>timestamp
DateTimeOffset
OnResponseCompleted(Func<object, Task>, object?)
void OnResponseCompleted(Func<object, Task> callback, object? state)
Parameters
OnResponseStarting(Func<object, Task>, object?)
void OnResponseStarting(Func<object, Task> callback, object? state)
Parameters
ReportIncident(IncidentTypes, string, string?, object?, string?, bool, string?, string?)
Task<bool> ReportIncident(IncidentTypes type, string title, string? description, object? data, string? category = null, bool IsEntitySpecific = false, string? callerFilePath = null, string? callerMemberName = null)
Parameters
type
IncidentTypestitle
stringdescription
stringdata
objectcategory
stringIsEntitySpecific
boolcallerFilePath
stringcallerMemberName
string
Returns
StartTraceActivity(string)
Start a trace activity
Activity? StartTraceActivity(string name)
Parameters
name
string
Returns
StartTraceActivity(string, ActivityKind)
Activity? StartTraceActivity(string name, ActivityKind kind)
Parameters
name
stringkind
ActivityKind
Returns
SubmitProgressUpdate(byte, byte, string)
Informs the caller about a status update. This is a best-effort mechanism that batches and issues updates at specific intervals (typically every few seconds), so not all updates will be invoked on the called in case of frequent updating
void SubmitProgressUpdate(byte progress, byte state, string status)
Parameters
ThrowIfCancellationRequested()
Throws a System.OperationCanceledException if this token has had cancellation requested.
void ThrowIfCancellationRequested()