Class ServerCall
In the server side code, provides access to server call ambient context. Use to access Headers
Inheritance
System.Object
ServerCall
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: Azos.Glue
Assembly: Azos.dll
Syntax
public static class ServerCall
Properties
App
Returns app chassis reference that the call is serviced by
Declaration
public static IApplication App { get; }
Property Value
Type | Description |
---|---|
IApplication |
Glue
Returns Glue reference that the call is serviced by
Declaration
public static IGlue Glue { get; }
Property Value
Type | Description |
---|---|
IGlue |
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. If headers are null, they will get created
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(IGlue, RequestMsg)
Internal framework-only method to bind thread-level context. Normally this would never be called but in some unit tests
Declaration
public static void __SetThreadLevelContext(IGlue glue, RequestMsg request)
Parameters
Type | Name | Description |
---|---|---|
IGlue | glue | |
RequestMsg | request |
GetResponseHeadersOrNull()
Returns response headers if allocated or null
Declaration
public static Headers GetResponseHeadersOrNull()
Returns
Type | Description |
---|---|
Headers |