public void Add(IDynamicViewModelPresenter item) { Should.NotBeNull(item, nameof(item)); _list.Add(item); _presenter.OnDynamicPresenterAdded(item); }
public void RegisterMediatorFactory([NotNull] Func<IViewModel, Type, IDataContext, IWindowViewMediator> mediatorFactory, int priority = 0) { Should.NotBeNull(mediatorFactory, nameof(mediatorFactory)); lock (_mediatorRegistrations) _mediatorRegistrations.Add(new MediatorRegistration(priority, mediatorFactory)); }