Example #1
0
 public HomeController(
     IProxy <EditorialModel> editorialProxy,
     IOptionsSnapshot <EditorialServices> editorialSnapshot)
 {
     this.editorialProxy    = editorialProxy;
     this.editorialServices = editorialSnapshot.Value;
 }
Example #2
0
 public BookController(
     IProxy <BookModel> bookProxy,
     IProxy <EditorialModel> editorialProxy,
     IOptionsSnapshot <BookServices> bookSnapshot,
     IOptionsSnapshot <EditorialServices> editorialSnapshot)
 {
     this.bookProxy         = bookProxy;
     this.editorialProxy    = editorialProxy;
     this.bookServices      = bookSnapshot.Value;
     this.editorialServices = editorialSnapshot.Value;
 }