Stormancer.Networking.RequestModuleBuilder Class Reference

Object passed to the IRequestModule.Register method to allow modules to add handlers to system requests. More...

Public Member Functions

void Service (byte msgId, Func< RequestContext, Task > handler)
 Adds a request handler for the specified message Id. More...
 

Detailed Description

Object passed to the IRequestModule.Register method to allow modules to add handlers to system requests.

Member Function Documentation

◆ Service()

void Stormancer.Networking.RequestModuleBuilder.Service ( byte  msgId,
Func< RequestContext, Task >  handler 
)

Adds a request handler for the specified message Id.

Parameters
msgIdA byte representing the message id of the requests to handle.
handlerA Func<RequestContext,Task> object handling the requests for the provided message id.

The documentation for this class was generated from the following file:
  • Stormancer.Unity/Infrastructure/Modules/IModule.cs