Example #1
0
 public static void OpenInBrowser(WebServerMethod post, IContextualResourceModel resourceModel, string xmlData)
 {
     Uri url = GetWorkflowUri(resourceModel, xmlData, UrlType.XML);
     if(url != null)
     {
         Process.Start(url.ToString());
     }
 }
Example #2
0
        public static void OpenInBrowser(WebServerMethod post, IContextualResourceModel resourceModel, string xmlData)
        {
            Uri url = GetWorkflowUri(resourceModel, xmlData, UrlType.XML);

            if (url != null)
            {
                Process.Start(url.ToString());
            }
        }
Example #3
0
        public static void Send(WebServerMethod method, IContextualResourceModel resourceModel, string payload, IAsyncWorker asyncWorker)
        {
            if(resourceModel == null || resourceModel.Environment == null || !resourceModel.Environment.IsConnected)
            {
                return;
            }

            var clientContext = resourceModel.Environment.Connection;
            if(clientContext == null)
            {
                return;
            }
            asyncWorker.Start(() =>
            {
                var controller = new CommunicationController { ServiceName = resourceModel.Category };
                controller.AddPayloadArgument("DebugPayload", payload);
                controller.ExecuteCommand<string>(clientContext, clientContext.WorkspaceID);
            }, () => { });

        }
Example #4
0
        public static void Send(WebServerMethod method, IContextualResourceModel resourceModel, string payload, IAsyncWorker asyncWorker)
        {
            if (resourceModel == null || resourceModel.Environment == null || !resourceModel.Environment.IsConnected)
            {
                return;
            }

            var clientContext = resourceModel.Environment.Connection;

            if (clientContext == null)
            {
                return;
            }
            asyncWorker.Start(() =>
            {
                var controller = new CommunicationController {
                    ServiceName = resourceModel.Category
                };
                controller.AddPayloadArgument("DebugPayload", payload);
                controller.ExecuteCommand <string>(clientContext, clientContext.WorkspaceID);
            }, () => { });
        }