Last change
on this file since 5242 was
4983,
checked in by jwolfing, 14 years ago
|
#1196 Added TestForm and modified the AuthenticationClientClass
|
File size:
1008 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Services.Authentication.DataTransfer;
|
---|
6 | using HeuristicLab.Services.Authentication;
|
---|
7 | using System.ServiceModel.Security;
|
---|
8 | using HeuristicLab.Services.Authentication.ServiceClients;
|
---|
9 |
|
---|
10 | namespace 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.