private static void ProcessComment(Comment comment, IKernel Kernel) { using (CommentProcessor processor = Kernel.Get <CommentProcessor>()) { processor.Process(comment); } }
public void SubmitComment(string text) { CommentProcessor.Process(text, Proxy, Id); // Task.Factory.StartNew(() => Proxy.SubmitComment(Id, text)) // .ContinueWith(r => QueryForComments(Id)); }