예제 #1
0
        protected override void OnStart(string[] args)
        {
            int time = 60000;

            try
            {
                _unitOfWork         = new BitCoinUnitOfWork(new BitCoinContext());
                _broker             = new BitCoinServiceBroker();
                _callTimer          = new System.Timers.Timer(time);
                _callTimer.Elapsed += _callTimer_Elapsed;
                _callTimer.Enabled  = true;
            }
            catch
            { }
        }
예제 #2
0
 public ViewModel()
 {
     _unitOfWork = new BitCoinUnitOfWork(new BitCoinContext());
 }