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); }
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); }