예제 #1
0
 public override Task <PrintResult> PrintTTF(PrintTTFOptions printTtfOptions, ServerCallContext ctx)
 {
     _log.Info("gRpc request to PrintTTF, Book = " + printTtfOptions.Book);
     return(printTtfOptions.Book ? Task.FromResult(PrintController.BuildTtfBook(printTtfOptions.Draft))
         : Task.FromResult(PrintController.PrintAllArtifacts(printTtfOptions.Draft)));
 }
예제 #2
0
 public override Task <PrintResult> PrintTTFArtifact(ArtifactToPrint printArtifact, ServerCallContext ctx)
 {
     _log.Info("gRpc request to PrintTTFArtifact: " + printArtifact.Type + " id: " + printArtifact.Id);
     return(Task.FromResult(PrintController.PrintArtifact(printArtifact)));
 }