Class GeneratedServerMethodRegistration
- Namespace
- AnyProtocol
- Assembly
- AnyProtocol.dll
Provides the generated server method registration implementation used by AnyProtocol applications.
public sealed class GeneratedServerMethodRegistration
- Inheritance
-
GeneratedServerMethodRegistration
- Inherited Members
Constructors
GeneratedServerMethodRegistration(string, GeneratedServerHandler)
Initializes a new instance of the GeneratedServerMethodRegistration class.
public GeneratedServerMethodRegistration(string methodName, GeneratedServerHandler handler)
Parameters
methodNamestringThe method name.
handlerGeneratedServerHandlerThe callback invoked for each received message.
GeneratedServerMethodRegistration(string, GeneratedServerStreamHandler)
Initializes a new instance of the GeneratedServerMethodRegistration class.
public GeneratedServerMethodRegistration(string methodName, GeneratedServerStreamHandler streamHandler)
Parameters
methodNamestringThe method name.
streamHandlerGeneratedServerStreamHandlerThe stream handler.
Properties
Handler
Gets the handler.
public GeneratedServerHandler? Handler { get; }
Property Value
- GeneratedServerHandler
The handler.
MethodName
Gets the method name.
public string MethodName { get; }
Property Value
- string
The method name.
StreamHandler
Gets the stream handler.
public GeneratedServerStreamHandler? StreamHandler { get; }
Property Value
- GeneratedServerStreamHandler
The stream handler.