Click or drag to resize

CommunicationExtensionsCallOthersT Method (IController, String, Byte)

The method builds a RPC frame and sends it to all clients having an instance of the IController type T The calling client is excluded from the clients being called.

Namespace:  Crosser.Common.Server
Assembly:  Crosser.Common (in Crosser.Common.dll) Version: 0.0.4
Syntax
C#
public static Task CallOthers<T>(
	this IController instance,
	string method,
	byte[] data
)
where T : class, IController

Parameters

instance
Type: Crosser.Common.ServerIController
The calling instance
method
Type: SystemString
The method to use in the RPC frame
data
Type: SystemByte
The data to send

Type Parameters

T
The type of IController to send to

Return Value

Type: Task
Task

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IController. 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).
See Also