コード例 #1
0
 public MeteoriteLandingServer()
 {
     server = new Server
     {
         Services = { MeteoriteLandingsService.BindService(new MeteoriteLandingsServiceImpl()) },
         Ports    = { new ServerPort("localhost", 6000, ServerCredentials.Insecure) }
     };
 }
コード例 #2
0
 public GrpcFrontendServer(string fehost, int feport, string behost, int beport)
 {
     server = new Server
     {
         Services = { MeteoriteLandingsService.BindService(new GrpcFrontendServiceImpl(behost, beport)) },
         Ports    = { new ServerPort(fehost, feport, ServerCredentials.Insecure) }
     };
 }
コード例 #3
0
 public MeteoriteLandingServer(string host, int port)
 {
     server = new Server
     {
         Services = { MeteoriteLandingsService.BindService(new MeteoriteLandingsServiceImpl()) },
         Ports    = { new ServerPort(host, port, ServerCredentials.Insecure) }
     };
 }