Click or drag to resize

CommunicationExtensionsCallWhereT Method (IController, FuncT, Boolean, String, Byte)

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

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

Parameters

instance
Type: Crosser.Common.ServerIController
The calling instance
expr
Type: SystemFuncT, Boolean
The expression to find clients to target
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