Exemple #1
0
 private void ProcessOnEntering(IEnumerable <ITandTarget <T> > targets, CallEnterContext <T> callEnterContext)
 {
     foreach (var tandTarget in targets)
     {
         OnEnterMethod(tandTarget, callEnterContext);
     }
 }
Exemple #2
0
 protected virtual void OnEnterMethod(ITandTarget <T> target, CallEnterContext <T> callEnterContext)
 {
     try
     {
         target.OnEnterMethod(callEnterContext);
     }
     catch (Exception e)
     {
         _exceptionHandler?.Invoke(e);
     }
 }
Exemple #3
0
 public void OnEnterMethod(CallEnterContext <T> enterContext)
 {
     _instanceHandle(enterContext.Instance);
 }
Exemple #4
0
 public void OnEnterMethod(CallEnterContext <T> enterContext)
 {
     _stopwatch.Start();
 }
 public void OnEnterMethod(CallEnterContext <ISampleService> enterContext) => _onEnterHandle(enterContext);