AMPS C# Client  5.3.5.0
AMPS C# Client for .NET
AMPS.Client.ActionDisconnectHandler Class Reference

Allows the use of an Action (i.e. lambda function with no return value) in any context where a ClientDisconnectHandler may be used. More...

+ Inheritance diagram for AMPS.Client.ActionDisconnectHandler:

Public Member Functions

 ActionDisconnectHandler (Action< Client > action)
 Initializes a new instance of the ActionDisconnectHandler class. More...
 
void invoke (Client client)
 Invokes the stored action with the provided client parameter. More...
 

Detailed Description

Allows the use of an Action (i.e. lambda function with no return value) in any context where a ClientDisconnectHandler may be used.

Constructor & Destructor Documentation

◆ ActionDisconnectHandler()

AMPS.Client.ActionDisconnectHandler.ActionDisconnectHandler ( Action< Client action)
inline

Initializes a new instance of the ActionDisconnectHandler class.

Parameters
actionThe Action<Client> to be executed when disconnecting a client.

Member Function Documentation

◆ invoke()

void AMPS.Client.ActionDisconnectHandler.invoke ( Client  client)
inline

Invokes the stored action with the provided client parameter.

Parameters
clientThe client parameter to be passed to the stored action.

Implements AMPS.Client.ClientDisconnectHandler.


The documentation for this class was generated from the following file: