public IHostedUpbeatBuilder MapViewModel <TParameters, TViewModel, TView>(Func <IUpbeatService, TParameters, IServiceProvider, TViewModel> viewModelCreator) where TView : UIElement { MappingRegisterers.Add( upbeatStack => upbeatStack.MapViewModel <TParameters, TViewModel, TView>(viewModelCreator)); return(this); }
public IHostedUpbeatBuilder MapViewModel <TParameters, TUpbeatViewModel, TView>(bool allowUnresolvedDependencies = false) where TView : UIElement { MappingRegisterers.Add( upbeatStack => upbeatStack.MapViewModel <TParameters, TUpbeatViewModel, TView>(allowUnresolvedDependencies)); return(this); }
public IHostedUpbeatBuilder SetViewModelLocators(Func <Type, Type> parameterToViewModelLocator, Func <Type, Type> parameterToViewLocator, bool allowUnresolvedDependencies = false) { MappingRegisterers.Add(upbeatStack => upbeatStack.SetViewModelLocators( parameterToViewModelLocator, parameterToViewLocator, allowUnresolvedDependencies)); return(this); }
public IHostedUpbeatBuilder SetDefaultViewModelLocators(bool allowUnresolvedDependencies = false) { MappingRegisterers.Add( upbeatStack => upbeatStack.SetDefaultViewModelLocators(allowUnresolvedDependencies)); return(this); }