Exemple #1
0
        public async Task <string> GetAccessTokenAsync()
        {
            Logger.Normal($"Start connecting to Token endpoint: {TokenUrl}");
            var token = await GetToken(new Uri(TokenUrl), TokenParamsCollection);

            Logger.Normal($"Token endpoint reply with access_token");
            return(token);
        }
Exemple #2
0
 public async Task <int> RunOptionsAsync(string[] args)
 {
     return(await RunOptionsAsync(args, async x =>
     {
         Logger.Info(ApplicationInfo.HeadingInfo);
         Logger.Normal(ApplicationInfo.Copyright);
         //Console.WriteLine(ApplicationInfo.Description);
         await new CsCommand(x, StartUp._pocoFileSystem).Execute().ConfigureAwait(false);
     }));
 }
        public static string RenameClass(string className)
        {
            if (!className.IsCSharpReservedWord())
            {
                return(className);
            }
            var newClassName = className.ToggleFirstLetter();

            Logger.Normal($"The class: '{className}' is a reserved keyword. It's renamed to '{newClassName}'");
            //ClassChangedName[className]=  newClassName;
            AddItem(className, newClassName);
            return(newClassName);
        }
Exemple #4
0
        public void ShowOptions(Options option)
        {
            //format option as: -n Navigation= True
            _logger.Normal("************* CommandLine options***********");
            var list = CommandLineUtility.GetOptions(option);

            list.ForEach(x => _logger.Normal(x));
            _logger.Normal("********************************************");
        }