NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Performance

Security checks involve checking the stack for permissions of all callers, so depending on the stack depth are potentially very expensive operations. If one operation actually consists of a number of actions at a lower level that require security checks, it may greatly improve performance to check caller permissions once and then assert the necessary permission before performing the actions. The assert will stop the stack walk from propagating further up the stack so the check will stop there and succeed; typically this results in performance improvement when three or more permission checks can be covered together.