System.Runtime.Remoting.Identity.SetFullyConnected C# (CSharp) Méthode

SetFullyConnected() private méthode

private SetFullyConnected ( ) : void
Résultat void
        internal void SetFullyConnected()
        {
            BCLDebug.Assert(
                this is ServerIdentity,
                "should be setting these flags for srvIDs only!");
            BCLDebug.Assert(
                (_ObjURI != null),
                "Object must be assigned a URI to be fully connected!");

            while(true) {
                int currentFlags = _flags;
                int newFlags = _flags & (~(IDFLG_DISCONNECTED_FULL | IDFLG_DISCONNECTED_REM));
                if(currentFlags == Interlocked.CompareExchange(ref _flags, newFlags, currentFlags))
                    break;
            }
        }