Class Locker
Client for glued contract Azos.Sky.Contracts.ILocker server.
Each contract method has synchronous and asynchronous versions, the later denoted by 'Async_' prefix.
May inject client-level inspectors here like so:
client.MsgInspectors.Register( new YOUR_CLIENT_INSPECTOR_TYPE());
Inheritance
System.Object
Locker
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)
Assembly: Azos.Sky.dll
Syntax
public class Locker : ClientEndPoint, ILockerClient, ISkyServiceClient, IDisposable, ILocker, ISkyService
Constructors
Locker(IGlue, Node, Binding)
Declaration
public Locker(IGlue glue, Node node, Binding binding = null)
Parameters
Locker(IGlue, String, Binding)
Declaration
public Locker(IGlue glue, string node, Binding binding = null)
Parameters
Type |
Name |
Description |
IGlue |
glue |
|
System.String |
node |
|
Binding |
binding |
|
Properties
Contract
Declaration
public override Type Contract { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
Methods
Async_EndLockSession(LockSessionID)
Asynchronous invoker for 'Azos.Sky.Contracts.ILocker.EndLockSession'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning no exception or WrappedExceptionData instance.
CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
Declaration
public CallSlot Async_EndLockSession(LockSessionID sessionID)
Parameters
Returns
Async_ExecuteLockTransaction(LockSessionData, LockTransaction)
Asynchronous invoker for 'Azos.Sky.Contracts.ILocker.ExecuteLockTransaction'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning no exception or WrappedExceptionData instance.
CallSlot is returned that can be queried for CallStatus, ResponseMsg and result.
Declaration
public CallSlot Async_ExecuteLockTransaction(LockSessionData session, LockTransaction transaction)
Parameters
Returns
EndLockSession(LockSessionID)
Synchronous invoker for 'Azos.Sky.Contracts.ILocker.EndLockSession'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@System.@Boolean' or WrappedExceptionData instance.
ClientCallException is thrown if the call could not be placed in the outgoing queue.
RemoteException is thrown if the server generated exception during method execution.
Declaration
public bool EndLockSession(LockSessionID sessionID)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ExecuteLockTransaction(LockSessionData, LockTransaction)
Synchronous invoker for 'Azos.Sky.Contracts.ILocker.ExecuteLockTransaction'.
This is a two-way call per contract specification, meaning - the server sends the result back either
returning '@Azos.@Sky.@Locking.@LockTransactionResult' or WrappedExceptionData instance.
ClientCallException is thrown if the call could not be placed in the outgoing queue.
RemoteException is thrown if the server generated exception during method execution.
Declaration
public LockTransactionResult ExecuteLockTransaction(LockSessionData session, LockTransaction transaction)
Parameters
Returns
Implements
System.IDisposable
Extension Methods