/// <summary> /// Compiles the specified source and sends errors to the client. /// </summary> /// <param name="source">The source to compile.</param> public void Compile(String source) { using (var c = new CompileController()) { var errors = c.Get(source); Clients.Caller.sendErrors(errors); } }
/// <summary> /// Compiles the specified source and sends errors to the client. /// </summary> /// <param name="source">The source to compile.</param> public void Compile(String source) { using (var c = new CompileController()) { var request = new CompileController.CompileRequest { Source = source }; var errors = c.Post(request); Clients.Caller.sendErrors(errors); } }