Class NullChannel
Inheritance
System.Object
NullChannel
Implements
IPollableChannel
Assembly: Steeltoe.Integration.IntegrationBase.dll
Syntax
public class NullChannel : Channel<IMessage>
Constructors
|
Edit this page
View Source
NullChannel(ILogger)
Declaration
public NullChannel(ILogger logger = null)
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
Properties
|
Edit this page
View Source
ServiceName
Declaration
public string ServiceName { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
Receive()
Declaration
public IMessage Receive()
Returns
Type |
Description |
IMessage |
|
|
Edit this page
View Source
Receive(Int32)
Declaration
public IMessage Receive(int timeout)
Parameters
Type |
Name |
Description |
System.Int32 |
timeout |
|
Returns
Type |
Description |
IMessage |
|
|
Edit this page
View Source
ReceiveAsync(CancellationToken)
Declaration
public ValueTask<IMessage> ReceiveAsync(CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
ValueTask<IMessage> |
|
|
Edit this page
View Source
Send(IMessage)
Declaration
public bool Send(IMessage message)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Send(IMessage, Int32)
Declaration
public bool Send(IMessage message, int timeout)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
System.Int32 |
timeout |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
SendAsync(IMessage, CancellationToken)
Declaration
public ValueTask<bool> SendAsync(IMessage message, CancellationToken cancellationToken = null)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
ValueTask<System.Boolean> |
|
Implements
IPollableChannel