Table of Contents

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

methodName string

The method name.

handler GeneratedServerHandler

The callback invoked for each received message.

GeneratedServerMethodRegistration(string, GeneratedServerStreamHandler)

Initializes a new instance of the GeneratedServerMethodRegistration class.

public GeneratedServerMethodRegistration(string methodName, GeneratedServerStreamHandler streamHandler)

Parameters

methodName string

The method name.

streamHandler GeneratedServerStreamHandler

The 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.