InstanceStore.TryCommand 메서드

정의

지속성 공급자는 특정 지속성 명령이 실행될 수 있는지 여부를 확인하는 이 메서드를 구현하고 명령을 실행할 수 있으면 이를 비동기적으로 실행합니다.

protected public:
 virtual bool TryCommand(System::Runtime::DurableInstancing::InstancePersistenceContext ^ context, System::Runtime::DurableInstancing::InstancePersistenceCommand ^ command, TimeSpan timeout);
protected internal virtual bool TryCommand (System.Runtime.DurableInstancing.InstancePersistenceContext context, System.Runtime.DurableInstancing.InstancePersistenceCommand command, TimeSpan timeout);
abstract member TryCommand : System.Runtime.DurableInstancing.InstancePersistenceContext * System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan -> bool
override this.TryCommand : System.Runtime.DurableInstancing.InstancePersistenceContext * System.Runtime.DurableInstancing.InstancePersistenceCommand * TimeSpan -> bool
Protected Friend Overridable Function TryCommand (context As InstancePersistenceContext, command As InstancePersistenceCommand, timeout As TimeSpan) As Boolean

매개 변수

context
InstancePersistenceContext

인스턴스 컨텍스트입니다.

command
InstancePersistenceCommand

실행할 명령입니다.

timeout
TimeSpan

작업의 시간 제한 값입니다.

반환

지속성 공급자 구현에서는 매개 변수로 전달된 명령을 지원하지 않는 경우 false를 반환합니다. 그렇지 않은 경우 true를 반환하거나 예외를 throw합니다.

설명

명령을 실행할 수 있는 경우 지속성 공급자는 에서 InstancePersistenceContext 관련 메서드를 호출하여 명령의 결과를 제공합니다.

적용 대상