MultithreadedCallerContextService Class |
Namespace: Dundas.BI.Services
The MultithreadedCallerContextService type exposes the following members.
| Name | Description | |
|---|---|---|
| MultithreadedCallerContextService |
Initializes a new instance of the MultithreadedCallerContextService class.
|
| Name | Description | |
|---|---|---|
| CurrentContext | Gets an object representing the current caller context. (Inherited from CallerContextService.) | |
| CurrentWindowsIdentity | Gets the WindowsIdentity associated with the caller. (Inherited from CallerContextService.) | |
| IsMultithreaded |
Gets a value indicating whether the service supports different callers between threads.
(Overrides CallerContextServiceIsMultithreaded.) | |
| StoredContext |
Gets or sets the context that is actually stored by a derived class.
(Overrides CallerContextServiceStoredContext.) | |
| WillCreatedContextBeThreadAgnostic | Gets a value indicating whether a caller context created on the current thread will be thread-agnostic. (Inherited from CallerContextService.) |
| Name | Description | |
|---|---|---|
| CloneAndSetCurrentContext |
Clones the provided caller context and associates it with the current caller.
(Inherited from CallerContextService.) | |
| CloneAndSetCurrentContextIfRequired |
Ensures that the properties of the specified context are associated with the current thread.
(Inherited from CallerContextService.) | |
| CreateAndSetCurrentContext | Creates a new context object and associates it with the current caller. (Inherited from CallerContextService.) | |
| CreateContext |
Creates a context object initialized with a session ID.
(Inherited from CallerContextService.) | |
| DestroyCurrentContext |
Disposes the current context (if there is one) and replaces it with a new one.
(Inherited from CallerContextService.) | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from CallerContextService.) | |
| Dispose(Boolean) | Releases unmanaged and - optionally - managed resources. (Overrides CallerContextServiceDispose(Boolean).) | |
| Finalize |
Finalizes an instance of the CallerContextService class.
(Inherited from CallerContextService.) | |
| QueueBackgroundTask(Action, TimeSpan, CancellationToken) | Runs an action after a specified delay. (Inherited from CallerContextService.) | |
| QueueBackgroundTaskT(FuncT, TimeSpan, CancellationToken) | Runs an action after a specified delay. (Inherited from CallerContextService.) | |
| SetContextAsThreadAgnostic | Marks the specified context as thread agnostic. | |
| SpawnTaskTResult |
Creates an asynchronous task which inherits the properties of the current caller context.
(Inherited from CallerContextService.) | |
| TryGetCurrentContext |
Gets the active caller context.
(Inherited from CallerContextService.) |
This implementation assumes that any specific thread is only associated with one Session at a time, by storing the session internally using a ThreadLocalT field.
Depending on the circumstances, this may or may not be appropriate for web servers.