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 를 호출합니다.

적용 대상