Ejemplo n.º 1
0
        public MinerService()
        {
            InitializeComponent();

            minerEventLog = new MinerEventLog();
            minerManager  = new MinerManager();
            minerManager.SetLogger(minerEventLog);
        }
Ejemplo n.º 2
0
        public MinerService()
        {
            InitializeComponent();

            config       = MinerConfig.ReadFromFile();
            minerManager = new MinerManager(config.IsFakeRun);

            minerEventLog = new MinerEventLog();
            minerManager.SetLogger(minerEventLog);

            minerEventLog.WriteLog(0, 0, "MinerService Started.");

            namedPipeServerTask = new Task(() =>
            {
                NamedPipeServerMain();
            });
        }