/// <summary> /// Creates a new proxy that is identical to this proxy, except for the per-proxy context. /// <param name="newIdentity">The identity for the new proxy.</param> /// <returns>The proxy with the new identity.</returns> /// </summary> public ObjectPrx ice_identity(Identity newIdentity) { if(newIdentity.name.Length == 0) { throw new IllegalIdentityException(); } if(newIdentity.Equals(_reference.getIdentity())) { return this; } else { ObjectPrxHelperBase proxy = new ObjectPrxHelperBase(); proxy.setup(_reference.changeIdentity(newIdentity)); return proxy; } }
/// <summary> /// Creates a new proxy that is identical to this proxy, except for the facet. /// </summary> /// <param name="newFacet">The facet for the new proxy.</param> /// <returns>The proxy with the new facet.</returns> public ObjectPrx ice_facet(string newFacet) { if(newFacet == null) { newFacet = ""; } if(newFacet.Equals(_reference.getFacet())) { return this; } else { ObjectPrxHelperBase proxy = new ObjectPrxHelperBase(); proxy.setup(_reference.changeFacet(newFacet)); return proxy; } }