public static void OpenInBrowser(WebServerMethod post, IContextualResourceModel resourceModel, string xmlData) { Uri url = GetWorkflowUri(resourceModel, xmlData, UrlType.XML); if(url != null) { Process.Start(url.ToString()); } }
public static void OpenInBrowser(WebServerMethod post, IContextualResourceModel resourceModel, string xmlData) { Uri url = GetWorkflowUri(resourceModel, xmlData, UrlType.XML); if (url != null) { Process.Start(url.ToString()); } }
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); }, () => { }); }
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); }, () => { }); }