Free cookie consent management tool by TermsFeed Policy Generator

source: branches/UserManagement/HeuristicLab.Services.Authentication.TestClient2/Program.cs @ 5155

Last change on this file since 5155 was 4983, checked in by jwolfing, 14 years ago

#1196 Added TestForm and modified the AuthenticationClientClass

File size: 1008 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Services.Authentication.DataTransfer;
6using HeuristicLab.Services.Authentication;
7using System.ServiceModel.Security;
8using HeuristicLab.Services.Authentication.ServiceClients;
9
10namespace HeuristicLab.Services.Authentication.TestClient2
11{
12    class Program
13    {
14        static void Main(string[] args)
15        {
16            IEnumerable<Application> apps = AuthenticationClient.Instance.Applications;
17
18            foreach (Application app in apps)
19            {
20                Console.WriteLine(app.Name);
21            }
22            Console.WriteLine("          Users         ");
23            IEnumerable<User> users = AuthenticationClient.Instance.Users;
24
25            foreach (User u in users) {
26              Console.WriteLine(u.Name);
27            }
28            Console.ReadLine(); 
29
30            System.Windows.Forms.Application.Run(new Form1());
31        }
32    }
33}
Note: See TracBrowser for help on using the repository browser.