Example #1
0
        public bool ActivateFor(Row row)
        {
            if (row.GetType().GetCustomAttribute<CaptureLogAttribute>() == null)
                return false;

            captureLogHandler = (ICaptureLogHandler)Activator.CreateInstance(
                typeof(CaptureLogHandler<>).MakeGenericType(row.GetType()));

            return true;
        }
Example #2
0
        public bool ActivateFor(Row row)
        {
            if (row.GetType().GetCustomAttribute <CaptureLogAttribute>() == null)
            {
                return(false);
            }

            captureLogHandler = (ICaptureLogHandler)Activator.CreateInstance(
                typeof(CaptureLogHandler <>).MakeGenericType(row.GetType()));

            return(true);
        }