Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4406


Ignore:
Timestamp:
09/16/10 05:15:58 (14 years ago)
Author:
swagner
Message:

Fixed return types in ClientFactory (#1187)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Common/3.3/ClientFactory.cs

    r4387 r4406  
    2626namespace HeuristicLab.Clients.Common {
    2727  public static class ClientFactory {
    28     public static I CreateClient<T, I>()
     28    public static T CreateClient<T, I>()
    2929      where T : ClientBase<I>, I
    3030      where I : class {
    3131      return CreateClient<T, I>(null, null);
    3232    }
    33     public static I CreateClient<T, I>(string endpointConfigurationName)
     33    public static T CreateClient<T, I>(string endpointConfigurationName)
    3434      where T : ClientBase<I>, I
    3535      where I : class {
    3636      return CreateClient<T, I>(endpointConfigurationName, null);
    3737    }
    38     public static I CreateClient<T, I>(string endpointConfigurationName, string remoteAddress)
     38    public static T CreateClient<T, I>(string endpointConfigurationName, string remoteAddress)
    3939      where T : ClientBase<I>, I
    4040      where I : class {
     
    5353      client.ClientCredentials.UserName.Password = Settings.Default.Password;
    5454      client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode.None;
    55       return (I)client;
     55      return client;
    5656    }
    5757  }
Note: See TracChangeset for help on using the changeset viewer.