예제 #1
0
        public override void SetCompositeCredentials(object state, ChannelCredentials channelCredentials, CallCredentials callCredentials)
        {
            channelCredentials.InternalPopulateConfiguration(this, state);

            if (callCredentials != null)
            {
                if (CallCredentials == null)
                {
                    CallCredentials = new List <CallCredentials>();
                }

                CallCredentials.Add(callCredentials);
            }
        }
        public override void SetCompositeCredentials(object state, ChannelCredentials channelCredentials, CallCredentials callCredentials)
        {
            // TODO(JamesNK): Remove nullable override after Grpc.Core.Api update
            channelCredentials.InternalPopulateConfiguration(this, null !);

            if (callCredentials != null)
            {
                if (CallCredentials == null)
                {
                    CallCredentials = new List <CallCredentials>();
                }

                CallCredentials.Add(callCredentials);
            }
        }