AsgSearch.web.App_Start.UnityConfig.RegisterTypes C# (CSharp) Метод

RegisterTypes() публичный статический Метод

Registers the type mappings with the Unity container.
There is no need to register concrete types such as controllers or API controllers (unless you want to change the defaults), as Unity allows resolving a concrete type even if it was not previously registered.
public static RegisterTypes ( IUnityContainer container ) : void
container IUnityContainer The unity container to configure.
Результат void
        public static void RegisterTypes(IUnityContainer container)
        {
            // NOTE: To load from web.config uncomment the line below. Make sure to add a Microsoft.Practices.Unity.Configuration to the using statements.
            // container.LoadConfiguration();

            // HINT: Register your types here
            container
               //.RegisterType<IQueryService, QueryService>()
               //.RegisterType<???,???>()
               .RegisterType<IDALContext, DALContext>();
        }
    }