gRPC Net 5 Creates a Proto sample file for the App

    0

    1

    lucycodes42

    C# recipes

    Shortcut: g_r_p_c_proto

    // Create a Proto folder and keep there this greet.proto file
    syntax = "proto3";
    
    package greet;
    
    // Greeting service definition
    service Greeter {
      // Sends a greeting
      rpc SayHello (HelloRequest) returns (HelloReply);
    }
    
    // The request message containing the user's name
    message HelloRequest {
      string name = 1;
    }
    
    // The response message containing the greetings
    message HelloReply {
      string message = 1;
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.