Beispiel #1
0
 internal void LeaveBottleneck(AmbientBottleneckAccessor ambientBottleneckAccess)
 {
     foreach (IAmbientBottleneckExitNotificationSink notificationSink in _notificationSinks)
     {
         notificationSink.BottleneckExited(ambientBottleneckAccess);
     }
 }
Beispiel #2
0
 public void BottleneckExited(AmbientBottleneckAccessor bottleneckAccessor)
 {
     foreach (IAmbientBottleneckExitNotificationSink notificationSink in _notificationSinks)
     {
         notificationSink.BottleneckExited(bottleneckAccessor);
     }
 }
Beispiel #3
0
        public AmbientBottleneckAccessor EnterBottleneck(AmbientBottleneck bottleneck)
        {
            AmbientBottleneckAccessor access = new AmbientBottleneckAccessor(this, bottleneck, AmbientClock.Ticks);

            foreach (IAmbientBottleneckExitNotificationSink notificationSink in _notificationSinks)
            {
                IAmbientBottleneckEnterNotificationSink?enterSink = notificationSink as IAmbientBottleneckEnterNotificationSink;
                enterSink?.BottleneckEntered(access);
            }
            return(access);
        }
Beispiel #4
0
 void IAmbientBottleneckExitNotificationSink.BottleneckExited(AmbientBottleneckAccessor bottleneckAccessor)
 {
     CallContextDistributor.BottleneckExited(bottleneckAccessor);
 }