public void Setup() { container = new UnityContainer(); container.AddNewExtension<Interception>(); CallHandlerInitialiser.RegisterCallHandlerDependencies(container); HandlerHelpers.RegisterTypeWithCallHandler<TimingHandler, SampleTimingClass>(container); publisher = container.Resolve<IMethodTimePublisher>(); }
/// <summary> /// Creates a new instance of the Timing Handler. /// </summary> /// <param name="publisher">The publisher used to broadcast timing events.</param> public TimingHandler(IMethodTimePublisher publisher) { this.publisher = (MethodTimePublisher)publisher; }