/// <summary> /// Invokes the registered action. /// </summary> /// <param name="requestId"> /// The request identifier. /// </param> /// <param name="routePath"> /// The route path. /// </param> /// <param name="parameters"> /// The parameters. /// </param> /// <param name="postData"> /// The post data. /// </param> /// <param name="rawJson"> /// Raw json request data. /// </param> /// <returns> /// The <see cref="ChromelyResponse"/>. /// </returns> public ChromelyResponse Invoke(string requestId, RoutePath routePath, IDictionary <string, object> parameters, object postData, string rawJson = null) { ChromelyRequest request = new ChromelyRequest(requestId, routePath, parameters, postData, rawJson); return(Action.Invoke(request)); }
public Task <ChromelyResponse> InvokeAsync(ChromelyRequest request) { return(ActionAsync.Invoke(request)); }
/// <summary> /// Invokes the registered action. /// </summary> /// <param name="request"> /// The request. /// </param> /// <returns> /// The <see cref="ChromelyResponse"/>. /// </returns> public ChromelyResponse Invoke(ChromelyRequest request) { return(Action.Invoke(request)); }
/// <summary> /// Invokes the registered action. /// </summary> /// <param name="routePath"> /// The route path. /// </param> /// <param name="parameters"> /// The parameters. /// </param> /// <param name="postData"> /// The post data. /// </param> /// <returns> /// The <see cref="ChromelyResponse"/>. /// </returns> public ChromelyResponse Invoke(RoutePath routePath, IDictionary <string, object> parameters, object postData) { ChromelyRequest request = new ChromelyRequest(routePath, parameters, postData); return(this.Action.Invoke(request)); }