Example #1
0
        public PollService(ILogger logger = null)
        {
            if (logger == null)
            {
                logger = new EmptyLogger();
            }

            _Logger = logger;
        }
Example #2
0
        public PollService(ILogger logger = null,
                           IPollAccessControlService pollAccessControlService = null)
        {
            if (logger == null)
            {
                logger = new EmptyLogger();
            }
            if (pollAccessControlService == null)
            {
                pollAccessControlService = new EmptyAccessControlService();
            }

            _Logger = logger;
            _PollAccessControlService = pollAccessControlService;
        }