Esempio n. 1
0
 public MessageController(IMsgRepository msgRepository, UserManager <ApplicationUser> userManager, IWebHostEnvironment hostingEnvironment, ILogger <MessageController> logger, MyConfiguration myConfiguration)
 {
     this.msgRepository      = msgRepository;
     this.userManager        = userManager;
     this.hostingEnvironment = hostingEnvironment;
     this.logger             = logger;
     this.myConfiguration    = myConfiguration;
 }
Esempio n. 2
0
        /// <summary>
        /// Create a new instance of msg Management Service
        /// </summary>
        /// <param name="vipRepository">Associated msgRepository, intented to be resolved with DI</param>
        public MsgAppService(IMsgRepository msgRepository) //the msg repository
        {
            if (msgRepository == null)
            {
                throw new ArgumentNullException("msgRepository");
            }

            _msgRepository = msgRepository;
        }
Esempio n. 3
0
 public MsgService(IMsgRepository repository)
 {
     _repostitory = repository;
 }