InstanceStore::BeginTryCommand Method (InstancePersistenceContext^, InstancePersistenceCommand^, TimeSpan, AsyncCallback^, Object^)
A persistence provider implements this method, which determines whether a particular persistence command can be executed. If the command can be executed, executes the command asynchronously.
Assembly: System.Runtime.DurableInstancing (in System.Runtime.DurableInstancing.dll)
public protected: virtual IAsyncResult^ BeginTryCommand( InstancePersistenceContext^ context, InstancePersistenceCommand^ command, TimeSpan timeout, AsyncCallback^ callback, Object^ state )
Parameters
- context
-
Type:
System.Runtime.DurableInstancing::InstancePersistenceContext^
The instance context.
- command
-
Type:
System.Runtime.DurableInstancing::InstancePersistenceCommand^
The persistence command to be executed.
- timeout
-
Type:
System::TimeSpan
The timeout value for the command execution.
- callback
-
Type:
System::AsyncCallback^
The asynchronous callback delegate that receives notification of the completion of the asynchronous operation.
- state
-
Type:
System::Object^
The state information.
If the command can be executed, the persistence provider calls relevant methods on the InstancePersistenceContext to provide the results of the command.
Warning |
|---|
Even though this method is declared as virtual rather than abstract, there is no implementation. This method must be overridden in order to provide functionality. |
Available since 4.0
