Esempio n. 1
0
        private CommandHostContext CommandHostContext()
        {
            _output.WriteLine("Initializing Coevery session. (This might take a few seconds...)");
            var result = _commandHostContextProvider.CreateContext();

            if (result.StartSessionResult == result.RetryResult)
            {
                result = _commandHostContextProvider.CreateContext();
            }
            else if (result.StartSessionResult == CommandReturnCodes.Fail)
            {
                _output.WriteLine("Failed to initialize Coevery session.");
            }

            return(result);
        }
Esempio n. 2
0
 private CommandHostContext CommandHostContext()
 {
     return(_commandHostContextProvider.CreateContext());
 }