Animatroller.ExpanderCommunication.ServerConnectionManager.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
            this.cleanupTimer.Dispose();

            foreach (var connection in this.connectionCache.Values)
            {
                try
                {
                    // Close
                    connection.Close();
                }
                catch
                {
                }
            }

            this.listenSocket?.Dispose();
            this.listenSocket = null;
        }