Class ServerHandler
Executes server work - handles requests synchronously or asynchronously.
Inheritance
System.Object
ServerHandler
Implements
System.IDisposable
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)
Namespace: Azos.Glue.Implementation
Assembly: Azos.dll
Syntax
public class ServerHandler : GlueComponent, IDisposable, IDaemon, IDaemonView, IApplicationComponent, INamed, IConfigurable, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized
Constructors
ServerHandler(IGlueImplementation)
Declaration
public ServerHandler(IGlueImplementation glue)
Parameters
Type | Name | Description |
---|---|---|
IGlueImplementation | glue |
Fields
DEFAULT_INSTANCE_TIMEOUT_MS
Declaration
public const int DEFAULT_INSTANCE_TIMEOUT_MS = 300000
Field Value
Type | Description |
---|---|
System.Int32 |
GLUE_CTOR_SIGNATURE
Specifies special signature for glue-specific constructors. If a server implementer class implements a public ctor with this signature then it will be called instead of default .ctor. This is useful when server class needs to distinguish Glue allocations from de-serializations and others
Declaration
public static readonly Type[] GLUE_CTOR_SIGNATURE
Field Value
Type | Description |
---|---|
System.Type[] |
Methods
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
HandleRequestAsynchronously(RequestMsg)
Handles request in the context of ServerHandler thread, replying back to result queue
Declaration
public void HandleRequestAsynchronously(RequestMsg request)
Parameters
Type | Name | Description |
---|---|---|
RequestMsg | request |
HandleRequestFailure(FID, Boolean, Exception, Object)
Handles request synchronously in the context of the calling thread. Returns NULL for one-way calls
Declaration
public ResponseMsg HandleRequestFailure(FID reqID, bool oneWay, Exception failure, object bindingSpecCtx)
Parameters
Type | Name | Description |
---|---|---|
FID | reqID | |
System.Boolean | oneWay | |
System.Exception | failure | |
System.Object | bindingSpecCtx |
Returns
Type | Description |
---|---|
ResponseMsg |
HandleRequestSynchronously(RequestMsg)
Handles request synchronously in the context of the calling thread. Returns NULL for one-way calls
Declaration
public ResponseMsg HandleRequestSynchronously(RequestMsg request)
Parameters
Type | Name | Description |
---|---|---|
RequestMsg | request |
Returns
Type | Description |
---|---|
ResponseMsg |
Implements
System.IDisposable