예제 #1
0
        public BookListService(ILogger logger)
        {
            if (ReferenceEquals(logger, null))
            {
                logger = NLogProvider.GetLogger(nameof(BookListService));
            }

            logger.Debug("Constructor {0} with one parameter is started.", nameof(BookListService));
            this.logger = logger;
        }
예제 #2
0
        public BookListService(IRepository <Book> repository, ILogger logger)
        {
            Repository = repository;

            if (ReferenceEquals(logger, null))
            {
                logger = NLogProvider.GetLogger(nameof(BookListService));
            }

            logger.Debug("Constructor {0} with two parameters is started.", nameof(BookListService));
        }