示例#1
0
        internal ServiceDescriptor(ServiceDescriptorProto proto, FileDescriptor file, int index) : base(file, file.ComputeFullName(null, proto.Name), index)
        {
            ServiceDescriptor __4__this = this;

            this.proto   = proto;
            this.methods = DescriptorUtil.ConvertAndMakeReadOnly <MethodDescriptorProto, MethodDescriptor>(proto.Method, (MethodDescriptorProto method, int i) => new MethodDescriptor(method, file, __4__this, i));
            file.DescriptorPool.AddSymbol(this);
        }
示例#2
0
        internal ServiceDescriptor(ServiceDescriptorProto proto, FileDescriptor file, int index)
            : base(file, file.ComputeFullName(null, proto.Name), index)
        {
            Proto   = proto;
            Methods = DescriptorUtil.ConvertAndMakeReadOnly(proto.Method,
                                                            (method, i) => new MethodDescriptor(method, file, this, i));

            file.DescriptorPool.AddSymbol(this);
        }