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