void InitUniqueUri(Uri listenUriBaseAddress, string relativeAddress) { Fx.Assert(listenUriBaseAddress != null, "listenUriBaseAddress parameter should have been verified before now"); listenUriBaseAddress = UdpUtility.AppendRelativePath(listenUriBaseAddress, relativeAddress); this.listenUri = UdpUtility.AppendRelativePath(listenUriBaseAddress, Guid.NewGuid().ToString()); }
void InitExplicitUri(Uri listenUriBaseAddress, string relativeAddress) { if (listenUriBaseAddress.IsDefaultPort || listenUriBaseAddress.Port == 0) { throw FxTrace.Exception.ArgumentOutOfRange("context.ListenUriBaseAddress", listenUriBaseAddress, SR.ExplicitListenUriModeRequiresPort); } this.listenUri = UdpUtility.AppendRelativePath(listenUriBaseAddress, relativeAddress); }