asp.net - Moving from Castle Windsor to an IoC that runs under Medium Trust -


i've inherited project running on host had set full trust, required castle windsor ioc. new host, however, run in medium trust (as shared hosting providers), need replace windsor ioc.

being new ioc, i'm not sure framework(s) best use under medium trust , service locator model.

an example of existing registration code follows:

iwindsorcontainer container = new windsorcontainer(); controllerbuilder.current.setcontrollerfactory(new windsorcontrollerfactory(container));  container.registercontrollers(typeof(homecontroller).assembly);  container.register(     component.for(typeof(ientityduplicatechecker))         .implementedby(typeof(entityduplicatechecker))         .named("entityduplicatechecker"));  container.register(     alltypes         .fromassemblynamed("salient.website.data")         .pick()         .withservice.firstnongenericcoreinterface("salient.website.core"));  container.register(     alltypes     .fromthisassembly()         .pick()         .withservice.firstnongenericcoreinterface("salient.website.applicationservices"));  servicelocator.setlocatorprovider(() => new windsorservicelocator(container)); 

it save me lot of trial-and-error each framework, if had guidance of ones suitable, work under medium trust shared hosting, , example of translating above started.

the partial trust requirement of hoster odd, since microsoft has provided guidance hosters should migrate away medium trust , use proper os-level isolation instead (see here , here , here). official position of asp.net team medium trust obsolete, means new features , frameworks wont tested partial trust support , bugs in area won't fixed.

nevertheless, there other frameworks run in partial trust:

there might others, these ones know of.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -