Ejemplo n.º 1
0
 public bool CanRun()
 {
     if (Status.IsEncodingOrDecodingPerforming())
     {
         return(false);
     }
     return(InputDataService.GetInputCommand(path) != InputCommand.Unknown);
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            InputDataService inputservice = new InputDataService();
            //time set just for test
            DateTime starttime = DateTime.Now.ToUniversalTime();
            DateTime endtime   = DateTime.Now.ToUniversalTime();

            inputservice.PullData(starttime, endtime);

            DataAnalysisService analysisservice = new DataAnalysisService();

            DataOutputService outputservice = new DataOutputService();

            outputservice.OutputDataToPowerBI();
        }
Ejemplo n.º 3
0
        public virtual async Task Run()
        {
            ProgressValue = 0;
            InputCommand inputCommand = InputDataService.GetInputCommand(path);

            switch (inputCommand)
            {
            case InputCommand.Encode:
                await Encode();

                break;

            case InputCommand.Decode:
                await Decode();

                break;

            default:
                throw new Exception(nameof(inputCommand));
            }
        }