CommunicationExtensionsCallWhereT Method (T, 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
Syntaxpublic static Task CallWhere<T>(
this T instance,
Func<T, bool> expr,
string method,
byte[] data
)
where T : class, IController
Parameters
- instance
- Type: T
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:
TaskTask
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