Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 public override void Dispose()
 {
     mHisTagService = null;
     mTagAddress.Clear();
     mTagAddress = null;
     base.Dispose();
 }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        public void Start()
        {
            mHisTagService = ServiceLocator.Locator.Resolve <IHisEngine>();

            Init();
            resetEvent      = new ManualResetEvent(false);
            closedEvent     = new ManualResetEvent(false);
            mCompressThread = new Thread(ThreadPro);
            mCompressThread.IsBackground = true;
            mCompressThread.Start();
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        public void Stop()
        {
            mIsClosed = false;
            resetEvent.Set();
            closedEvent.WaitOne();

            mSourceMemory  = null;
            mHisTagService = null;

            resetEvent.Dispose();
            closedEvent.Dispose();

            foreach (var vv in mTargetMemorys)
            {
                vv.Value.Dispose();
            }
            mTargetMemorys.Clear();
        }
Beispiel #4
0
 /// <summary>
 ///
 /// </summary>
 public CompressMemory() : base()
 {
     mHisTagService = ServiceLocator.Locator.Resolve <IHisEngine>();
 }