public async Task <JArray> GetCache() { string message = $"{{\"cookie\":\"{cookie}\",\"type\":\"cache\"}}"; serverStream.WriteMessage(message); CMakeCacheReplyMessage reply = (CMakeCacheReplyMessage) await WaitForReply("cache").ConfigureAwait(false); return(reply.Cache); }
public static CMakeReplyMessage Create(JObject content) { switch (content["inReplyTo"].Value <string>()) { case "codemodel": return(CMakeCodeModelReplyMessage.Create(content)); case "cache": return(CMakeCacheReplyMessage.Create(content)); default: return(new CMakeReplyMessage(content)); } }