.net - Refreshing AzMan through AZROLESLib -
we've written simple azman wrapper class in .net uses azroleslib com interop library access azman.
it works fine, except when make changes underlying xml store, changes not reflected in subsequent calls azroleslib.
our code looks this:
at class level store reference authorisation store:
iazauthorizationstore authorisationstore = new azauthorizationstoreclass();
during construction of our class initialise store:
authorisationstore.initialize(0, xml_store_path)
the follow code gets executed whenever make request roles:
authorisationstore.updatecache(); var application = authorisationstore.openapplication(appname); // query here , return results
however, call updatecache seems nothing @ all. i've tried using closeapplication after every call throws exception: "the request not supported. (exception hresult: 0x80070032)". if new authorisationstore on every call, access denied exception instead (i assume because old authorisation store still has handle file?).
how can authorisation store refresh on every call?
thanks!
i'm closing i've noticed mysteriously working; call
authorisationstore.updatecache();
is key one. have no idea why wasn't working before, must have been doing wrong...
Comments
Post a Comment