Beispiel #1
0
        public virtual bool TryGetContext <TPayload>(out TPayload context)
            where TPayload : class
        {
            if (_parent != null)
            {
                return(_parent.TryGetContext(out context));
            }

            context = null;
            return(false);
        }
Beispiel #2
0
 public bool TryGetContext <T>(out T context)
     where T : class
 {
     return(_contextSnapshot.TryGetContext(out context));
 }