I am trying to impliment a custom authorization class....
I am using DI to make it available to one of my entity classes...
I added this:
<appSettings>
<add key="autoDependencyInjectionDiscovery" value="true"/>
</appSettings>
to my app.config file.
and this is my authorizer definition:
[DependencyInjectionInfo(typeof(LabwaretypeEntity), "AuthorizerToUse",
ContextType = DependencyInjectionContextType.Singleton)]
Upon app startup, it crashes with "The type initializer for "System.Windows.application" threw an exception...
Might have something to do with the AuthorizerToUse property because I can't find and definition of it anywhere in the generated code...
Is there anything special that needs to be done? This will be awesome if I can get it to work!
Thanks!
Harold