WebApiContrib.IoC.StructureMap
StructureMap dependency resolver for Web API
Install / Use
/learn @WebApiContrib/WebApiContrib.IoC.StructureMapREADME
WebApiContrib.IoC.StructureMap
This gives you all the pieces you need to hook up StructureMap as your Inversion of Control container for ASP.NET Web API.
Install
The best way to get your hands on WebApiContrib.IoC.StructureMap is to grab the package from NuGet:
Install-Package WebApiContrib.IoC.StructureMap
How to Use
Using the WebApiContrib StructureMap container is easy.
var config = GlobalConfiguration.Configuration;
var container = GetYourOwnBuiltContainer(); // You build this up yourself.
config.DependencyResolver = new StructureMapResolver(container);
One thing that is unique about this resolver is that it is also an instance of IHttpControllerActivator. Upon creation of the StructureMapResolver, it injects itself as the object to be returned when IHttpControllerActivator is requested.
Help! - Issues, Questions, and Anything Else
If you're in need of any assistance, your fastest method to get in touch with somebody that might be able to help is through the WebApiContrib mailing list: https://groups.google.com/group/webapicontrib
Another great way is to leave an issue on the GitHub repository.
For StructureMap specific questions, please see the StructureMap documentation.
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。