protected override void Execute(CodeActivityContext context) { IOperationActivity sendRequest = SendRequest.Get(context); Type workflowCallbackInterfaceType = WorkflowCallbackInterfaceType.Get(context); Type requestParameterType = RequestParameterType.Get(context); Type responseResultType = ResponseResultType.Get(context); if (sendRequest != null && workflowCallbackInterfaceType != null && requestParameterType != null && responseResultType != null) { sendRequest.OperationNames.Set( typeof(WorkflowCallbackInterfaceInfo <>).MakeGenericType(workflowCallbackInterfaceType) .GetMethod(nameof(WorkflowCallbackInterfaceInfo <object> .GetOperationNames)).Invoke(null, new object[] { requestParameterType, responseResultType }) as IEnumerable <string>); } }