Пример #1
0
 private void SetAsCurrent()
 {
     ContextHelper.Current = this;
     if (Interlocked.Exchange(ref _current, this) != this)
     {
         _current = this;
         CurrentChanged?.Invoke(this, new CurrentActivityChangedEventArgs(this));
     }
 }
 internal CurrentActivityChangedEventArgs(BaseActivity current)
 {
     Current = current;
 }