예제 #1
0
        protected virtual void Dispose(bool Disposing)
        {
            if (IsDisposed)
            {
                return;
            }

            if (Disposing)
            {
                UDPServer.Dispose();
                TCPServer.Dispose();
            }

            IsDisposed = true;
        }
예제 #2
0
        protected virtual void Dispose(bool Disposing)
        {
            if (IsDisposed)
            {
                return;
            }

            if (Disposing)
            {
                CancellationTokenSource.Dispose();
                UDPServer.Dispose();
                TCPServer.Dispose();
                StatusTimer.Dispose();
            }

            IsDisposed = true;
        }