internal ReplyContent CreatReplyContent(ReplyStatus status, ReplyMethodName methodName, string content) { ReplyContent replyModel = new ReplyContent() { ReplyStatus = status, ReplyMethodName = methodName, Content = content }; return(replyModel); }
internal Task ReplyAsync(string ClientId, ReplyStatus status, ReplyMethodName methodName, string content) { string replyContent = PublicMethod.JsonSerialize <ReplyContent>(CreatReplyContent(status, methodName, content)); return(hub.Clients.Client(ClientId).SendAsync("Reply", replyContent)); }