예제 #1
0
 public ChirpPostController(IChirpRepository a_repository, ILogger <ChirpPostController> a_logger, IConnectionManager a_connectionManager, UserManager <ChirpUser> a_userManager)
 {
     m_repository        = a_repository;
     m_logger            = a_logger;
     m_connectionManager = a_connectionManager;
     m_userManager       = a_userManager;
 }
예제 #2
0
 public ChirpPostController(IChirpRepository a_repository, ILogger<ChirpPostController> a_logger, IConnectionManager a_connectionManager, UserManager<ChirpUser> a_userManager)
 {
     m_repository = a_repository;
     m_logger = a_logger;
     m_connectionManager = a_connectionManager;
     m_userManager = a_userManager;
 }
예제 #3
0
 public ChirpControllerFactory(IChirpRepository chirpRepository)
 {
     if (chirpRepository == null)
     {
         throw new ArgumentNullException("documentStore");
     }
     this._controllerMap = new Dictionary<string, Func<RequestContext, IController>>();
     this._controllerMap["Home"] = context => new HomeController(chirpRepository);
     this._controllerMap["Administration"] = context => new AdministrationController(chirpRepository);
 }
예제 #4
0
 public ChirpRepositoryService(IChirpRepository repostiory)
 {
     _repository = repostiory;
 }
예제 #5
0
 public AdministrationController(IChirpRepository chirpRepository)
 {
     _chirpRepository = chirpRepository;
 }