public MySqlOptions() { _lazyConnectionSettings = new Lazy <MySqlConnectionSettings>(() => { if (_relationalOptions.Connection != null) { return(MySqlConnectionSettings.GetSettings(_relationalOptions.Connection)); } return(MySqlConnectionSettings.GetSettings(_relationalOptions.ConnectionString)); }); }
public MySqlOptions() { _lazyConnectionSettings = new Lazy <MySqlConnectionSettings>(() => { if (_relationalOptions.Connection != null) { return(MySqlConnectionSettings.GetSettings(_relationalOptions.Connection)); } return(MySqlConnectionSettings.GetSettings(_relationalOptions.ConnectionString)); }, LazyThreadSafetyMode.PublicationOnly); }
public MySqlOptions() { _lazyConnectionSettings = new Lazy <MySqlConnectionSettings>(() => { if (_relationalOptions.Connection != null) { return(MySqlConnectionSettings.GetSettings(_relationalOptions.Connection, _mySqlRetryNoDependendiciesExecutionStrategy)); } return(MySqlConnectionSettings.GetSettings(_relationalOptions.ConnectionString, _mySqlRetryNoDependendiciesExecutionStrategy)); }); }