示例#1
0
        private RpcEndpoint LookupEndpoint(string string_binding)
        {
            var endpoint = RpcEndpointMapper.MapBindingStringToEndpoint(string_binding, InterfaceId, InterfaceVersion);

            if (endpoint == null || string.IsNullOrEmpty(endpoint.Endpoint))
            {
                throw new ArgumentException($"Can't find endpoint for {InterfaceId} {InterfaceVersion} for binding string {string_binding}");
            }
            return(endpoint);
        }
        private RpcEndpoint LookupEndpoint(string protocol_seq)
        {
            var endpoint = RpcEndpointMapper.MapServerToEndpoint(protocol_seq, InterfaceId, InterfaceVersion);

            if (endpoint == null || string.IsNullOrEmpty(endpoint.EndpointPath))
            {
                throw new ArgumentException($"Can't find endpoint for {InterfaceId} {InterfaceVersion} with protocol sequence {protocol_seq}");
            }
            return(endpoint);
        }
示例#3
0
        private string LookupEndpoint()
        {
            var endpoint = RpcEndpointMapper.MapServerToAlpcEndpoint(InterfaceId, InterfaceVersion);

            if (endpoint == null || string.IsNullOrEmpty(endpoint.EndpointPath))
            {
                throw new ArgumentException($"Can't find endpoint for {InterfaceId} {InterfaceVersion}");
            }
            return(endpoint.EndpointPath);
        }