IsValid() 공개 메소드

public IsValid ( ) : bool
리턴 bool
예제 #1
0
        public Allocation GetByPeer(ServerEndPoint local, IPEndPoint remote)
        {
            Allocation allocation = null;

            lock (syncRoot)
                allocations4.TryGetValue(GetKey(local, remote), out allocation);

            return(allocation != null && allocation.IsValid() ? allocation : null);
        }
예제 #2
0
        public Allocation Get(ConnectionId connectionId)
        {
            Allocation allocation = null;

            lock (syncRoot)
                allocations3.TryGetValue(connectionId, out allocation);

            return(allocation != null && allocation.IsValid() ? allocation : null);
        }
예제 #3
0
        public Allocation Get(TransactionId transactionId)
        {
            Allocation allocation = null;

            lock (syncRoot)
                allocations1.TryGetValue(transactionId, out allocation);

            return(allocation != null && allocation.IsValid() ? allocation : null);
        }
예제 #4
0
        public Allocation Get(ServerEndPoint allocated)
        {
            Allocation allocation = null;

            lock (syncRoot)
            {
                if (byAllocated.TryGetValue(allocated, out allocation) == false)
                {
                    byReal.TryGetValue(allocated, out allocation);
                }
            }

            return(allocation != null && allocation.IsValid() ? allocation : null);
        }