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