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 { } }
public ViewModel() { _unitOfWork = new BitCoinUnitOfWork(new BitCoinContext()); }