示例#1
0
        /// <summary>
        /// Create a new instance of Log4net controller
        /// </summary>
        /// <param name="service">Service dependency</param>
        public Log4netController(ILog4netAppService service)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }

            //_unitOfWork = unitOfWork;
            _serviceLog4net = service;
        }
示例#2
0
        /// <summary>
        /// Create a new instance of Log4net viewmodel
        /// </summary>
        /// <param name="service">Service dependency</param>
        public Log4netCrudViewModel(ILog4netAppService service) : this()
        {
            if (service == null)
            {
                throw new ArgumentNullException("service", PresentationResources.exception_WithoutService);
            }

            _serviceLog4net = service;

            BuildVm();
        }