public IceInternal.EndpointI read(Ice.InputStream s) { short type = s.readShort(); Debug.Assert(type == _factory.type()); s.startEncapsulation(); IceInternal.EndpointI endpoint = new EndpointI(_factory.read(s)); s.endEncapsulation(); return endpoint; }
public EndpointI read(Ice.InputStream s) { lock(this) { short type = s.readShort(); EndpointFactory factory = get(type); EndpointI e = null; s.startEncapsulation(); if(factory != null) { e = factory.read(s); } else { e = new OpaqueEndpointI(type, s); } s.endEncapsulation(); return e; } }