public Server(string host, int port, ChannelContainer channels) { Host = host; Port = port; grpcServer = new grpc.Server() { Services = { PeerService.BindService(new GrpcPeerService(channels)) }, Ports = { new grpc.ServerPort(host, port, grpc.ServerCredentials.Insecure) } }; }
public GrpcPeerService(ChannelContainer channels) { this.channels = channels; }