public MetabaseCLIBuilder(
     IEnumerable <EntityFactory> factories,
     IEnumerable <ICommandBuilder> commandBuilders,
     CollectionFactory collectionFactory,
     LoggingLevelSwitch loggingLevelSwitch,
     SessionCredentials sessionCredentials,
     ILoggerFactory loggerFactory
     )
 {
     Factories          = factories;
     CollectionFactory  = collectionFactory;
     LoggingLevelSwitch = loggingLevelSwitch;
     LoggerFactory      = loggerFactory;
     CommandBuilders    = commandBuilders;
     SessionCredentials = sessionCredentials;
 }
Exemplo n.º 2
0
 private static Option <string> SetValueOption(SessionCredentials sessionCredentials, string name, string?customDescription = null) =>
Exemplo n.º 3
0
 internal static Option SetPasswordOption(SessionCredentials sessionCredentials) =>
 SetValueOption(sessionCredentials, "Password");
Exemplo n.º 4
0
 internal static Option <string> SetUserNameOption(SessionCredentials sessionCredentials) =>
 SetValueOption(sessionCredentials, "UserName");
Exemplo n.º 5
0
 internal static Option <string> SetServerOption(SessionCredentials sessionCredentials) =>
 SetValueOption(sessionCredentials, "Server", "url");
Exemplo n.º 6
0
 public Session(ILogger <Session> logger, SessionCredentials sessionCredentials)
 {
     Logger             = logger;
     SessionCredentials = sessionCredentials;
     SessionCredentials.PropertyChanged += (sender, e) => RedefineCredentials();
 }