private IAquariusClient CreateConnectedClient(string server, string username, string password) { return(string.IsNullOrWhiteSpace(Context.SessionToken) || server != Context.Server ? AquariusClient.CreateConnectedClient(server, username, password) : AquariusClient.ClientFromExistingSession(Context.Server, Context.SessionToken)); }
private IAquariusClient CreateConnectedClient() { return(string.IsNullOrWhiteSpace(Context.SessionToken) ? AquariusClient.CreateConnectedClient(Context.Server, Context.Username, Context.Password) : AquariusClient.ClientFromExistingSession(Context.Server, Context.SessionToken)); }