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));
 }
예제 #2
0
 private IAquariusClient CreateConnectedClient()
 {
     return(string.IsNullOrWhiteSpace(Context.SessionToken)
         ? AquariusClient.CreateConnectedClient(Context.Server, Context.Username, Context.Password)
         : AquariusClient.ClientFromExistingSession(Context.Server, Context.SessionToken));
 }