// Token: 0x06005448 RID: 21576 RVA: 0x0012A910 File Offset: 0x00128B10 internal void SetOrCreateURI(string uri, bool bIdCtor) { if (!bIdCtor && this._ObjURI != null) { throw new RemotingException(Environment.GetResourceString("Remoting_SetObjectUriForMarshal__UriExists")); } if (uri == null) { string text = Convert.ToBase64String(Identity.GetRandomBytes()); this._ObjURI = string.Concat(new string[] { Identity.IDGuidString, text.Replace('/', '_'), "_", Identity.GetNextSeqNum().ToString(CultureInfo.InvariantCulture.NumberFormat), ".rem" }).ToLower(CultureInfo.InvariantCulture); return; } if (this is ServerIdentity) { this._ObjURI = Identity.IDGuidString + uri; return; } this._ObjURI = uri; }
internal void SetOrCreateURI(string uri, bool bIdCtor) { if (!bIdCtor && this._ObjURI != null) { throw new RemotingException(Environment.GetResourceString("Remoting_SetObjectUriForMarshal__UriExists")); } if (uri == null) { this._ObjURI = (Identity.IDGuidString + Convert.ToBase64String(Identity.GetRandomBytes()).Replace('/', '_') + "_" + Identity.GetNextSeqNum().ToString((IFormatProvider)CultureInfo.InvariantCulture.NumberFormat) + ".rem").ToLower(CultureInfo.InvariantCulture); } else if (this is ServerIdentity) { this._ObjURI = Identity.IDGuidString + uri; } else { this._ObjURI = uri; } }