Exemplo n.º 1
0
        private void InitChannelMethodContext(IChannelEndpoint endpoint, HttpListenerRequest request, HttpListenerResponse response, bool isAuthenticated, ChannelHttpMethod method, List <object> channelRequestBody)
        {
            ChannelMethodContext methodContext = new ChannelMethodContext(request, response, method, channelRequestBody, isAuthenticated);

            _contextProvider.SetChannelMethodContext(endpoint, methodContext);
        }
 public void DestroyChannelMethodContext(IChannelEndpoint endpoint)
 {
     _contexts.Remove(endpoint);
 }
 public IChannelMethodContext GetChannelMethodContext(IChannelEndpoint endpoint)
 {
     return(_contexts.GetValueOrDefault(endpoint));
 }
 public void SetChannelMethodContext(IChannelEndpoint endpoint, IChannelMethodContext context)
 {
     _contexts.Add(endpoint, context);
 }