Exemplo n.º 1
0
 public static ChannelFactory <I> CreateChannelFactory <I>(string endpointConfigurationName, string remoteAddress)
     where I : class
 {
     return(CreateChannelFactory <I>(endpointConfigurationName, remoteAddress, Settings.Default.UserName, CryptoService.DecryptString(Settings.Default.Password)));
 }
Exemplo n.º 2
0
 public static T CreateClient <T, I>(string endpointConfigurationName, string remoteAddress)
     where T : ClientBase <I>, I
     where I : class
 {
     return(CreateClient <T, I>(endpointConfigurationName, remoteAddress, Settings.Default.UserName, CryptoService.DecryptString(Settings.Default.Password)));
 }