Rev | Line | |
---|
[4927] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
[4940] | 5 | using HeuristicLab.Services.Authentication.ServiceClient;
|
---|
[4927] | 6 |
|
---|
| 7 | namespace 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.