GetNextSeqNum() private static méthode

private static GetNextSeqNum ( ) : int
Résultat int
Exemple #1
0
 // 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;
 }
Exemple #2
0
 // Token: 0x06005449 RID: 21577 RVA: 0x0012A9C2 File Offset: 0x00128BC2
 internal static string GetNewLogicalCallID()
 {
     return(Identity.IDGuidString + Identity.GetNextSeqNum());
 }
Exemple #3
0
 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;
     }
 }