Allows the use of an Action (i.e. lambda function with no return value) in any context where a ClientDisconnectHandler may be used.
More...
Allows the use of an Action (i.e. lambda function with no return value) in any context where a ClientDisconnectHandler may be used.
◆ ActionDisconnectHandler()
AMPS.Client.ActionDisconnectHandler.ActionDisconnectHandler |
( |
Action< Client > |
action | ) |
|
|
inline |
Initializes a new instance of the ActionDisconnectHandler class.
- Parameters
-
action | The Action<Client> to be executed when disconnecting a client. |
◆ invoke()
void AMPS.Client.ActionDisconnectHandler.invoke |
( |
Client |
client | ) |
|
|
inline |
Invokes the stored action with the provided client parameter.
- Parameters
-
client | The client parameter to be passed to the stored action. |
Implements AMPS.Client.ClientDisconnectHandler.
The documentation for this class was generated from the following file:
- AMPS.Client/ClientDisconnectHandler.cs