Beispiel #1
0
        public IHttpHandler GetHttpHandler(RequestContext requestContext)
        {
            // NOTE this feels a bit dirty, would like to maybe have a context provider or something
            var context = new HttpActorRequestContext(_fiberFactory(), requestContext);

            // NOTE this rocks, need to make sure we are thread safe
            var inputModel = (TInput)_modelBinder.Bind(typeof(TInput), context);

            var handler = new ActorHttpAsyncHandler <TInput>(context, inputModel, _channelProvider.GetChannel(inputModel));

            return(handler);
        }