コード例 #1
0
        public ClientProvider()
        {
            var options = new List <ChannelOption>
            {
                new ChannelOption(ChannelOptions.SslTargetNameOverride, "demo-linux1")
            };

            this.channel    = new Channel("localhost:8433", GetSslCredentials(), options);
            this.wallClient = new WallService.WallServiceClient(channel);
        }
コード例 #2
0
        public ClientProvider()
        {
            var options = new List <ChannelOption>
            {
                new ChannelOption(ChannelOptions.SslTargetNameOverride, "demo-linux1")
            };

            this.channel     = new Channel(GetBackend(), GetSslCredentials(), options);
            this.wallClient  = new WallService.WallServiceClient(channel);
            this.mediaClient = new MediaService.MediaServiceClient(channel);
        }