Click or drag to resize
RpcSceneHostExtensionsAddProcedure Method
Adds a procedure to the scene.

Namespace: Stormancer
Assembly: Stormancer.Server (in Stormancer.Server.dll) Version: (
public static void AddProcedure(
	this ISceneHost scene,
	string route,
	Func<RequestContext<IScenePeerClient>, Task> handler,
	bool ordered = true


Type: Stormancer.CoreISceneHost
The scene to add the procedure to.
Type: SystemString
The route of the procedure
Type: SystemFuncRequestContextIScenePeerClient, Task
A method that implement the procedure logic
ordered (Optional)
Type: SystemBoolean
True if order of the partial responses should be preserved when sent to the client, false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISceneHost. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Procedures provide an asynchronous request/response pattern on top of scenes using the RPC plugin. Procedures can be called by remote peers using the `rpc` method. They support multiple partial responses in a single request.
See Also