internal static EventClient GetDefaultEventClient(InstanceContext ctx) { if (string.Equals(UserSettings.AutoSyncServerHost, "localhost", StringComparison.OrdinalIgnoreCase)) { return(EventClient.GetNamedPipesClient(ctx)); } else { return(EventClient.GetNetTcpClient(ctx, UserSettings.AutoSyncServerHost, UserSettings.AutoSyncServerPort, UserSettings.AutoSyncServerIdentity)); } }
internal static EventClient GetDefaultEventClient(InstanceContext ctx) { if (App.IsConnectedToLocalhost()) { return(EventClient.GetNamedPipesClient(ctx)); } else { return(EventClient.GetNetTcpClient(ctx, UserSettings.AutoSyncServerHost, UserSettings.AutoSyncServerPort, UserSettings.AutoSyncServerIdentity)); } }