Ejemplo n.º 1
0
        public Exception Run(CancellationToken token, string logFile)
        {
            OnBegin?.Invoke();

            // init logger
            Logger = new Logger.Logger();
            if (!string.IsNullOrEmpty(logFile))
            {
                Logger.AddHook(new FileHook(logFile));
            }

            // Bind
            Vtn = new Transistor(Bind(VtnString, (VtnThreshold, VtnSigma, VtnNumberOfSigma), Sigma));
            Vtp = new Transistor(Bind(VtpString, (VtpThreshold, VtpSigma, VtpNumberOfSigma), Sigma));

            var rt = Do(token);

            OnFinish?.Invoke();
            return(rt);
        }