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