asp.net - Ninject with ActionFilters and SignalR -


i have mvc3 based web service uses ninject manage action filters, works fine. having implement signalr hub mix , ideally want re-use existing action filters on these new hubs if possible.

one of important filters cookieauthentication filter, checks given request contains right authentication cookie, if cookie not present or valid sets filtercontext.result object custom unauthorisedresult object. in example able use functionality signalr knowledge has no idea action results not sure if automatically cancel requests etc.

i have tried googling cannot find info on topic, assume cannot intermingle them both frameworks share underlying asp framework not mvc framework.

you can't. actionfilters mvc , don't run when using signalr. common ground (as realize) asp.net itself. means can write httpmodule not action filter.

you can learn more signalr security here: http://www.asp.net/signalr/overview/security


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -