Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created August 21, 2018 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannagel/21a40493afc3e123fdc33c7dad25b426 to your computer and use it in GitHub Desktop.
Save christiannagel/21a40493afc3e123fdc33c7dad25b426 to your computer and use it in GitHub Desktop.
Injecting services into the BooksViewModel
public class BooksViewModel : MasterDetailViewModel<BookItemViewModel, Book>
{
public BooksViewModel(
IItemsService<Book> itemsService,
IItemToViewModelMap<Book, BookItemViewModel> viewModelMap,
IShowProgressInfo showProgressInfo, ILoggerFactory loggerFactory)
: base(itemsService, viewModelMap, showProgressInfo, loggerFactory)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment