Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4940 for branches


Ignore:
Timestamp:
11/25/10 23:09:16 (14 years ago)
Author:
jwolfing
Message:

#1196 add new clientclass

Location:
branches/UserManagement
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/Client.cs

    r4927 r4940  
    33using System.Linq;
    44using System.Text;
     5using HeuristicLab.Services.Authentication.ServiceClient;
    56
    67namespace HeuristicLab.Services.Authentication.ServiceClients
    78{
    8    public class Client
     9   public class AuthenticationClient
    910    {
    1011
    11        // like OKBClient
    12     }
     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   }
    1340}
  • branches/UserManagement/HeuristicLab.Services.Authentication.ServiceClients/HeuristicLab.Services.Authentication.ServiceClient.csproj

    r4925 r4940  
    77    <SchemaVersion>2.0</SchemaVersion>
    88    <ProjectGuid>{8E698904-936D-4C7A-AB0D-6225778D2968}</ProjectGuid>
    9     <OutputType>Library</OutputType>
     9    <OutputType>Exe</OutputType>
    1010    <AppDesignerFolder>Properties</AppDesignerFolder>
    1111    <RootNamespace>HeuristicLab.Services.Authentication.ServiceClients</RootNamespace>
     
    3131    <WarningLevel>4</WarningLevel>
    3232  </PropertyGroup>
     33  <PropertyGroup>
     34    <StartupObject />
     35  </PropertyGroup>
    3336  <ItemGroup>
    3437    <Reference Include="System" />
     
    5255  <ItemGroup>
    5356    <None Include="app.config" />
     57    <None Include="HeuristicLab.snk" />
    5458    <None Include="ServiceClients\GenerateServiceClients.cmd" />
    5559  </ItemGroup>
  • branches/UserManagement/HeuristicLab.Services.Authentication/HeuristicLab.Services.Authentication.csproj

    r4926 r4940  
    4646  <ItemGroup>
    4747    <Compile Include="Convert.cs" />
    48     <Compile Include="Interface\IAuthenticationService.cs" />
     48    <Compile Include="Interfaces\IAuthenticationService.cs" />
    4949    <Compile Include="Properties\AssemblyInfo.cs" />
    5050    <Compile Include="AuthenticationService.cs" />
Note: See TracChangeset for help on using the changeset viewer.