Show / Hide Table of Contents

Interface IInputChannel

Defines the interface that a channel must implement to receive a message.

Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public interface IInputChannel

Methods

| Improve this Doc View Source

IsSupported(String, Boolean)

Determines whether the specified message can be processed by this handler.

Declaration
virtual bool IsSupported(string messageName, bool oneWay)
Parameters
Type Name Description
String messageName

The name of the message.

Boolean oneWay

true if message is one-way; false if message is request message that requires a response.

Returns
Type Description
Boolean

true if message can be processed by this handler; otherwise, false.

| Improve this Doc View Source

ReceiveMessage(ISubscriber, IMessage, Object, CancellationToken)

Handles incoming message from the specified cluster member.

Declaration
Task<IMessage> ReceiveMessage(ISubscriber sender, IMessage message, object context, CancellationToken token)
Parameters
Type Name Description
ISubscriber sender

The sender of the message.

IMessage message

The received message.

Object context

The context of the underlying network request.

CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
Task<IMessage>

The response message.

Remarks

Implementation of this method should handle every exception inside of it and prepare response message representing such exception.

| Improve this Doc View Source

ReceiveSignal(ISubscriber, IMessage, Object, CancellationToken)

Handles incoming signal from the specified cluster member.

Declaration
Task ReceiveSignal(ISubscriber sender, IMessage signal, object context, CancellationToken token)
Parameters
Type Name Description
ISubscriber sender

The sender of the message.

IMessage signal

The received message representing signal.

Object context

The context of the underlying network request.

CancellationToken token

The token that can be used to cancel the operation.

Returns
Type Description
Task

The task representing asynchronous execution of the method.

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)
ObjectExtensions.As<T>(T)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX