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;
 }
 private static Option <string> SetValueOption(SessionCredentials sessionCredentials, string name, string?customDescription = null) =>
 internal static Option SetPasswordOption(SessionCredentials sessionCredentials) =>
 SetValueOption(sessionCredentials, "Password");
 internal static Option <string> SetUserNameOption(SessionCredentials sessionCredentials) =>
 SetValueOption(sessionCredentials, "UserName");
 internal static Option <string> SetServerOption(SessionCredentials sessionCredentials) =>
 SetValueOption(sessionCredentials, "Server", "url");
Exemple #6
0
 public Session(ILogger <Session> logger, SessionCredentials sessionCredentials)
 {
     Logger             = logger;
     SessionCredentials = sessionCredentials;
     SessionCredentials.PropertyChanged += (sender, e) => RedefineCredentials();
 }