Class ServerCallContext
Provides access to server call context. Use to access Headers
Inheritance
System.Object
ServerCallContext
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Glue
Assembly: NFX.dll
Syntax
public static class ServerCallContext
Properties
Request
Returns RequestMsg which is being processed. Access incoming headers through Request.Headers
Declaration
public static RequestMsg Request { get; }
Property Value
| Type | Description |
|---|---|
| RequestMsg |
ResponseHeaders
Returns Headers instance that will be appended to response
Declaration
public static Headers ResponseHeaders { get; }
Property Value
| Type | Description |
|---|---|
| Headers |
Methods
__ResetThreadLevelContext()
Internal framework-only method to clear thread-level context
Declaration
public static void __ResetThreadLevelContext()
__SetThreadLevelContext(RequestMsg)
Internal framework-only method to bind thread-level context
Declaration
public static void __SetThreadLevelContext(RequestMsg request)
Parameters
| Type | Name | Description |
|---|---|---|
| RequestMsg | request |
GetResponseHeadersOrNull()
Declaration
public static Headers GetResponseHeadersOrNull()
Returns
| Type | Description |
|---|---|
| Headers |