System.Web.Mvc.DependencyResolverExtensions.GetStore C# (CSharp) Method

GetStore() public static method

Gets an IWebHookStore implementation registered with the Dependency Injection engine or a default implementation if none are registered.
public static GetStore ( this services ) : IWebHookStore
services this The implementation.
return IWebHookStore
        public static IWebHookStore GetStore(this IDependencyResolver services)
        {
            IWebHookStore store = services.GetService<IWebHookStore>();
            return store ?? CustomServices.GetStore();
        }