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); }
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); }
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("********************************************"); }