Exemplo n.º 1
0
        static void Main(string[] args)
        {
            TokenAssistantServiceClient azureAppDbHelperClient = new TokenAssistantServiceClient();

            foreach (var app in azureAppDbHelperClient.GetAllApps())
            {
                Console.WriteLine(String.Format("{0}:{1}", app.AppName, app.Type));
                Console.WriteLine(app.Type);
                if (app.tokenRequests.Length > 0)
                {
                    Console.WriteLine(String.Format("\t{0,-30}{1,-30}", "Resource", "SignInUserName"));
                }
                foreach (var tokenRequest in app.tokenRequests)
                {
                    Console.WriteLine(String.Format("\t{0,-30}{1,-30}", tokenRequest.Resource, tokenRequest.SignInUserName));
                }
            }

            Console.ReadLine();
        }
Exemplo n.º 2
0
 private void BindListApps()
 {
     listApps.DataSource    = dataService.GetAllApps();
     listApps.DisplayMember = "AppName";
     listApps.ValueMember   = "ClientId";
 }