コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
     }
 }