public SwisSettingsContext() { if (Current != null) throw new InvalidOperationException("SwisSettingsContext.Current is already set."); DataProviderTimeout = DefaultProviderTimeout; Current = this; }
public SwisSettingsContext() { if (Current != null) { throw new InvalidOperationException("SwisSettingsContext.Current is already set."); } DataProviderTimeout = DefaultProviderTimeout; Current = this; }
public void Dispose() { Current = null; }