How come I can't call Domain.GlobalCache.Invalidate(...) and Session.Cache.Invalidate(...)?

I get a SecurityException with "Access to Invalidate isn't allowed."

asked Nov 25 '10 at 06:15

ara's gravatar image


One Answer:

I don't remember why it is designed this way but DataObjects allows these calls only when the security disabled.

So you can call Invalidate from e.g. DataServices like following:

  using (CreateSecurityDisabler())

answered Nov 25 '10 at 08:35

Alex%20Ustinov's gravatar image

Alex Ustinov

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview


Once you sign in you will be able to subscribe for any updates here



Asked: Nov 25 '10 at 06:15

Seen: 7,806 times

Last updated: Nov 25 '10 at 08:35

powered by OSQA