コード例 #1
0
        public async Task <HttpResponseMessage> signalRPushPost(Post post)
        {
            Post data = post;

            try
            {
                ApiResponseModel <Post> model = new ApiResponseModel <Post>()
                {
                };
                model.data.records = data;
                MessagingHub.sendPost(data);
                return(Response.Success <Post>(model));
            }
            catch (Exception ex)
            {
                return(Response.Exception(ex));
            }
        }