CustomAuditorInstaller

Dec 30, 2013 at 7:31 AM
Edited Dec 30, 2013 at 9:20 AM
Richard,

Getting problem with this code -

protected override IAuditorInstaller Auditor
    {
        get
        {
            return new CustomAuditorInstaller(new MyDefaultAuditor());
        }
    }
Assembly reference of 'CustomAuditorInstaller' cannot be found. Is the spelling - "CustomAuditorInstaller" correct? As the type or namespace name 'CustomAuditorInstaller' could not be found.

Thanks,
Elma
Coordinator
Dec 30, 2013 at 10:35 AM
I think CustomAuditorInstaller was renamed to AuditInstaller and the documentation may now be out of date.

Try using NakedObjects.Reflector.Audit.AuditInstaller
Dec 30, 2013 at 11:14 AM
Edited Dec 30, 2013 at 11:20 AM
I've tried with AuditInstaller and using NakedObjects.Reflector.Audit.AuditInstaller. Still error remains.

After building the solution error shows:

Error 1 "A using namespace directive can only be applied to namespaces; 'NakedObjects.Reflector.Audit.AuditInstaller' is a type not a namespace"
Coordinator
Dec 30, 2013 at 12:03 PM
I meant to use that type in the code - sorry that was ambiguous -

eg
using NakedObjects.Reflector.Audit;

....

protected override IAuditorInstaller Auditor

    {
        get
        {
            return new AuditInstaller(new MyDefaultAuditor());
        }
    }
Jan 2, 2014 at 6:57 AM
Thanks. This issue is resolved.