BolfTracker.Web.App_Start.UnityWebActivator.Start C# (CSharp) Method

Start() public static method

Integrates Unity when the application starts.
public static Start ( ) : void
return void
        public static void Start()
        {
            var container = UnityConfig.GetConfiguredContainer();

            FilterProviders.Providers.Remove(FilterProviders.Providers.OfType<FilterAttributeFilterProvider>().First());
            FilterProviders.Providers.Add(new UnityFilterAttributeFilterProvider(container));

            DependencyResolver.SetResolver(new UnityDependencyResolver(container));
        }
UnityWebActivator