コード例 #1
0
        public static ReceiveRequestSendResponseScopeExecutionProperty <TResult> GetReceiveRequestSendResponseScopeExecutionProperty <TResult>(this NativeActivityContext context)
        {
            ReceiveRequestSendResponseScopeExecutionProperty <TResult> executionProperty =
                context.Properties.Find(ReceiveRequestSendResponseScope.ExecutionPropertyName) as ReceiveRequestSendResponseScopeExecutionProperty <TResult>;

            if (executionProperty == null)
            {
                throw new ValidationException(typeof(ReceiveRequestSendResponseScopeExecutionProperty <TResult>).GetFriendlyName() + " is not found.");
            }
            return(executionProperty);
        }
コード例 #2
0
        public static ReceiveRequestSendResponseScopeExecutionProperty GetReceiveRequestSendResponseScopeExecutionProperty(this NativeActivityContext context)
        {
            ReceiveRequestSendResponseScopeExecutionProperty executionProperty =
                context.Properties.Find(ReceiveRequestSendResponseScope.ExecutionPropertyName) as ReceiveRequestSendResponseScopeExecutionProperty;

            if (executionProperty == null)
            {
                throw new ValidationException(nameof(ReceiveRequestSendResponseScopeExecutionProperty) + " is not found.");
            }
            return(executionProperty);
        }