Interface INetworkListener
Interface for listening to network stream connections.
Namespace: Dicom.Network
Assembly: cs.temp.dll.dll
Syntax
public interface INetworkListener
Methods
AcceptNetworkStreamAsync(String, Boolean, CancellationToken)
Wait until a network stream is trying to connect, and return the accepted stream.
Declaration
Task<INetworkStream> AcceptNetworkStreamAsync(string certificateName, bool noDelay, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
String | certificateName | Certificate name of authenticated connections. |
Boolean | noDelay | No delay? |
CancellationToken | token | Cancellation token. |
Returns
Type | Description |
---|---|
Task<INetworkStream> | Connected network stream. |
StartAsync()
Start listening.
Declaration
Task StartAsync()
Returns
Type | Description |
---|---|
Task | An await:able |
Stop()
Stop listening.
Declaration
void Stop()