Register Message Handlers with WebApi

Topics: Core, General, Troubleshooting
Nov 11, 2013 at 3:01 PM
I'm implementing an authorization module based on Orchard's WebApi capabilities.
In this module there is a message handler that check if an user is authorized.
The only problem is that I don't know how to register this message handler in Orchard.
In the standard .net webApi framework I would write

config.MessageHandlers.Add(new MyHandler());

in the WebApiConfig.cs file.

Is there an equivalent file in Orchard?