Ejemplo n.º 1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            IUnityContainer container = new UnityContainer();

            container.LoadConfiguration();
            container.RegisterInstance(DataServiceProvider.DataService);
            GlobalConfiguration.Configure(configuration => ODataConfig.Configure(configuration, container, GlobalConfiguration.DefaultServer));
        }
        private static void Configure(HttpConfiguration config, IUnityContainer container)
        {
            LogService.LogInfo("Инициирован запуск приложения.");

            ODataConfig.Configure(config, container, GlobalConfiguration.DefaultServer);
        }