/// <summary> /// Gets a default <see cref="IWebHookStore"/> implementation which is used if none are registered with the /// Dependency Injection engine. /// </summary> /// <returns>A default <see cref="IWebHookStore"/> instance.</returns> public static IWebHookStore GetStore() { if (_store != null) { return _store; } IWebHookStore instance = new MemoryWebHookStore(); Interlocked.CompareExchange(ref _store, instance, null); return _store; }
/// <summary> /// Gets a default <see cref="IWebHookStore"/> implementation which is used if none are registered with the /// Dependency Injection engine. /// </summary> /// <returns>A default <see cref="IWebHookStore"/> instance.</returns> public static IWebHookStore GetStore() { if (_store != null) { return(_store); } IWebHookStore instance = new MemoryWebHookStore(); Interlocked.CompareExchange(ref _store, instance, null); return(_store); }