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

GetUser() public static method

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