DevForce Help Reference
InvokeServerMethodAsync(InvokeServerMethodArgs,CancellationToken) Method


An instance of InvokeServerMethodArgs
CancellationToken to be passed to method
Asynchronously invokes the specified static (Shared in Visual Basic) method for execution on the server.
Syntax
'Declaration
 
Public Overloads Function InvokeServerMethodAsync( _
   ByVal args As InvokeServerMethodArgs, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of Object)
'Usage
 
Dim instance As EntityManager
Dim args As InvokeServerMethodArgs
Dim cancellationToken As CancellationToken
Dim value As Task(Of Object)
 
value = instance.InvokeServerMethodAsync(args, cancellationToken)

Parameters

args
An instance of InvokeServerMethodArgs
cancellationToken
CancellationToken to be passed to method
Exceptions
ExceptionDescription
System.ArgumentExceptionType name must be fully qualified
System.ArgumentExceptionUserState token must be unique for the client
System.Security.SecurityExceptionThe exception that is thrown when a security error is detected.
Remarks
The method called must be marked with the AllowRpcAttribute and correspond to the ServerMethodDelegate signature. InvokeServerMethodAsync enables a client-side caller to invoke an arbitrary static method on the server using an asynchronous call. The server method is called once only. An outstanding request can be cancelled using the System.Threading.CancellationToken. This feature is only available in certain editions of DevForce.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityManager Class
EntityManager Members
Overload List

Send Feedback