Esempio n. 1
0
 public static ConfigClient GetDefaultConfigClient()
 {
     if (string.Equals(UserSettings.AutoSyncServerHost, "localhost", StringComparison.OrdinalIgnoreCase))
     {
         return(ConfigClient.GetNamedPipesClient());
     }
     else
     {
         return(ConfigClient.GetNetTcpClient(UserSettings.AutoSyncServerHost, UserSettings.AutoSyncServerPort, UserSettings.AutoSyncServerIdentity));
     }
 }
Esempio n. 2
0
 public static ConfigClient GetDefaultConfigClient()
 {
     if (App.IsConnectedToLocalhost())
     {
         return(ConfigClient.GetNamedPipesClient());
     }
     else
     {
         return(ConfigClient.GetNetTcpClient(UserSettings.AutoSyncServerHost, UserSettings.AutoSyncServerPort, UserSettings.AutoSyncServerIdentity));
     }
 }