Click or drag to resize

CommunicationExtensionsCallAllT Method (T, String, Byte)

The method builds a RPC frame and sends it to all clients having an instance of the IController type T

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

Parameters

instance
Type: T
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 . 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