is AuthorizerToUse property still available?

Posts   
 
    
hchattaway
User
Posts: 38
Joined: 06-Apr-2006
# Posted on: 22-Jan-2018 04:29:48   

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! simple_smile Thanks! Harold

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 22-Jan-2018 05:16:27   

Hi Harold,

The AuthorizerToUse property is inherited from EntityCore, so you should be able to set it, manually or through DI.

Please give us more information about your context:

David Elizondo | LLBLGen Support Team