コード例 #1
0
ファイル: Route.cs プロジェクト: wkuan/Chromely
        /// <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));
        }
コード例 #2
0
 public Task <ChromelyResponse> InvokeAsync(ChromelyRequest request)
 {
     return(ActionAsync.Invoke(request));
 }
コード例 #3
0
ファイル: Route.cs プロジェクト: wkuan/Chromely
 /// <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));
 }
コード例 #4
0
        /// <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));
        }