Exemplo n.º 1
0
 internal static void Remove(HystrixRequestContext context, IHystrixRequestVariable <T> v)
 {
     if (context.State.TryRemove(v, out object oldValue))
     {
         v.Dispose();
     }
 }
Exemplo n.º 2
0
        public static HystrixRequestContext InitializeContext()
        {
            HystrixRequestContext context = new HystrixRequestContext();

            context.State          = new ConcurrentDictionary <IDisposable, object>();
            requestVariables.Value = context;
            return(context);
        }
 public static void SetContextOnCurrentThread(HystrixRequestContext state)
 {
     RequestVariables.Value = state;
 }