Turn.Server.TurnServer.Allocation_Removed C# (CSharp) Method

Allocation_Removed() private method

private Allocation_Removed ( Allocation allocation, AllocationsPool reason ) : void
allocation Allocation
reason AllocationsPool
return void
        private void Allocation_Removed(Allocation allocation, AllocationsPool.RemoveReason reason)
        {
            logger.WriteInformation(string.Format("Allocation Terminated: {0} <--> {1}, {2}", allocation.Alocated.ToString(), allocation.Reflexive.ToString(), reason.ToString()));
            peerServer.Unbind(allocation.Alocated.ProtocolPort);
        }