ApiControllerBase.EnsureCallerContext Method |
If the current context is not already the specified context, creates a new caller context which is
a clone of the specified context and sets it as the current one.
Namespace:
Dundas.BI.WebApi.Controllers
Assembly:
Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntaxprotected CallerContext? EnsureCallerContext(
CallerContext originalContext
)
Protected Function EnsureCallerContext (
originalContext As CallerContext
) As CallerContext
protected:
CallerContext^ EnsureCallerContext(
CallerContext^ originalContext
)
member EnsureCallerContext :
originalContext : CallerContext -> CallerContext
Parameters
- originalContext
- Type: Dundas.BI.CallerContext
The original caller context which will potentially be cloned.
Return Value
Type:
CallerContextThe caller context that is created, or
null if cloning the context was not necessary.
See Also