Ejemplo n.º 1
0
        /// <summary>
        ///     Initializes new instance of proxy factory with given report factory
        /// </summary>
        /// <param name="reportFactory">Factory to be used by proxies for creating reports</param>
        public ReportingProxyFactory(IEventReportFactory reportFactory)
        {
            if (reportFactory == null)
            {
                throw new ArgumentNullException(nameof(reportFactory));
            }

            _generator     = new ProxyGenerator();
            _reportFactory = reportFactory;
        }
 public ReportingInerceptor(IEventReportFactory reportFactory)
 {
     _reportFactory = reportFactory;
 }