Beispiel #1
0
        IHttpController IHttpControllerActivator.Create(HttpRequestMessage request, HttpControllerDescriptor controllerDescriptor, Type controllerType)
        {
            var res = (IHttpController)_ioc.Get(controllerType);

            request.RegisterForDispose(new Release(() => _ioc.Release(res)));

            return(res);
        }