private void ValidateConfig(NEventStoreViewerApiConfig config) { if (config == null) { Logger.Error("Configuration can not be null!"); throw new ArgumentException("Configuration can not be null."); } if (string.IsNullOrEmpty(config.ConnectionString)) { Logger.Error("The ConnectionString configuration is mandatory."); throw new ArgumentException("The ConnectionString configuration is mandatory", "config"); } }
public NEventStoreViewerApiConfigurator(NEventStoreViewerApiConfig config) { ValidateConfig(config); _configuration = config; ConfigureContainer(); }