public void BeforeStop(HostControl hostControl) { var context = new HostStopContextImpl(hostControl); _beforeStop.Notify(context); }