Ejemplo n.º 1
0
 public SessionHub(ISessionProvider sessionProvider,
                   IUserRepo userRepo,
                   IStoryRepo storyRepo)
 {
     _sessionProvider = sessionProvider;
     _userRepo        = userRepo;
     _storyRepo       = storyRepo;
 }
 public SessionProvider(ISessionRepo sessionRepo,
                        IStoryRepo storyRepo,
                        IUserRepo userRepo,
                        IBackgroundJobClient backgroundJobClient)
 {
     _sessionRepo         = sessionRepo;
     _storyRepo           = storyRepo;
     _userRepo            = userRepo;
     _backgroundJobClient = backgroundJobClient;
 }
Ejemplo n.º 3
0
 public FavoritesController(IStoryRepo storyRepo)
 {
     _storyRepo = storyRepo;
 }
Ejemplo n.º 4
0
 public StoryModel(IStoryRepo storyRepo)
 {
     _storyRepo = storyRepo;
 }
Ejemplo n.º 5
0
 public StoryService(IHackerRestClient hackerClient, IConfiguration configuration, IStoryRepo storyRepo)
 {
     this.storyRepo             = storyRepo;
     this.hackerClient          = hackerClient;
     this.configuration         = configuration;
     this.postfix               = this.configuration["HackerApi:PathPostfix"];
     this.storyDetailPathPrefix = this.configuration["HackerApi:StoryDetailPathPrefix"];
     this.storiesPath           = this.BuildStoriesPath();
     Task.Run(() => this.StartAutoRetrieveStories());
 }
Ejemplo n.º 6
0
 public RatingsController(IStoryRepo storyRepo)
 {
     _storyRepo = storyRepo;
 }
Ejemplo n.º 7
0
 public HomeController(IStoryRepo repo)
 {
     storyRepository = repo;
 }