コード例 #1
0
ファイル: Connection.cs プロジェクト: flippynips/EFZ
        //-------------------------------------------//

        /// <summary>
        /// When the connection has been inactive for the specified
        /// 'timeout' number of milliseconds.
        /// </summary>
        protected virtual void OnTimeout()
        {
            // remove connection from view
            ManagerConnections.Remove(this);
            // close the connection
            Close();
            _locker.OnLock   = null;
            _locker.OnUnlock = null;
        }
コード例 #2
0
ファイル: Configuration.cs プロジェクト: flippynips/EFZ
 /// <summary>
 /// Manually stop the connection between this configuration used for saving/loading.
 /// </summary>
 public void StopConnection()
 {
     ManagerConnections.Remove <ConnectionLocal>(_path);
 }