Free cookie consent management tool by TermsFeed Policy Generator

source: branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/Client.cs @ 4949

Last change on this file since 4949 was 4940, checked in by jwolfing, 14 years ago

#1196 add new clientclass

File size: 1.0 KB
RevLine 
[4927]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
[4940]5using HeuristicLab.Services.Authentication.ServiceClient;
[4927]6
7namespace HeuristicLab.Services.Authentication.ServiceClients
8{
[4940]9   public class AuthenticationClient
[4927]10    {
11
[4940]12     private static AuthenticationClient instance;
13     public static AuthenticationClient Instance {
14       get {
15         if (instance == null) instance = new AuthenticationClient();
16         return instance;
17       }
18     }
19
20     #region properties
21
22     public void createconnection() {
23
24       AuthenticationServiceClient service = new AuthenticationServiceClient();
25       IList<User> users = service.GetUsers(new Guid("a3961e10 - 0691 - 4e6d - aede - fd838c3a929a"));
26       foreach (User u in users) {
27         Console.WriteLine(u.ToString());
28       }
29     }
30
31
32     #endregion
33
34     public static void Main() {
35       AuthenticationClient auth = new AuthenticationClient();
36       auth.createconnection();
37
38     }
39   }
[4927]40}
Note: See TracBrowser for help on using the repository browser.