Beispiel #1
0
        internal static RpcSessionContext Wrap([NotNull] HttpContextPipelineHandlerContext context)
        {
            var c = new RpcSessionContext(context);

            var request  = new RpcSessionRequest(c);
            var response = new RpcSessionResponse(c);

            c.Request  = request;
            c.Response = response;

            return(c);
        }
Beispiel #2
0
 public RpcSessionResponse([NotNull] RpcSessionContext context)
 {
     Context     = context;
     RawResponse = context.RawContext.HttpContext.Response;
 }
Beispiel #3
0
 public RpcSessionRequest([NotNull] RpcSessionContext context)
 {
     Context    = context;
     RawRequest = context.RawContext.HttpContext.Request;
 }