AppVeyor.AppVeyorPackage.CreateService C# (CSharp) Method

CreateService() private method

private CreateService ( IServiceContainer container, Type serviceType ) : object
container IServiceContainer
serviceType System.Type
return object
        private object CreateService(IServiceContainer container, Type serviceType)
        {
            if (container != this)
            {
                return null;
            }

            if (typeof(SCommandManagerService) == serviceType)
            {
                return new CommandManagerServiceService(this);
            }
            if (typeof(SEventManager) == serviceType)
            {
                return new EventManagerService(this);
            }

            return null;
        }