Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides services for managing the queue of work items for a UI or non-UI thread for custom Unified Service Desk hosted controls. For internal use only.
Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics.Utilities
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)
Inheritance Hierarchy
System.Object
Microsoft.Crm.UnifiedServiceDesk.Dynamics.Utilities.SafeDispatcher
Syntax
public class SafeDispatcher : IDisposable
Public Class SafeDispatcher
Implements IDisposable
Constructors
Name | Description | |
---|---|---|
![]() |
SafeDispatcher(String) |
Methods
Events
Name | Description | |
---|---|---|
![]() |
SafeDispatcherUnhandledException | Occurs when a thread exception is thrown and not caught during execution of a delegate by way of Invoke, BeginInvoke, or InvokeAsync. |
Remarks
The SafeDispatcher class is a wrapper on the WPF Dispatcher class, and exposes a safe variant for the Invoke, BeginInvoke, and InvokeAsync methods of the Dispatcher class. These methods internally handle any exceptions raised by the delegates called by the methods, and can notify user about the error for handling.
Do not use the SafeDispatcher class directly in your code. It is exposed as a protected property on the DynamicsBaseHostedControl Class, and you should use this property on your custom hosted control instance that is derived from the DynamicsBaseHostedControl Class.
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Crm.UnifiedServiceDesk.Dynamics.Utilities Namespace
Use SafeDispatcher for custom hosted controls in Unified Service Desk
Return to top
Unified Service Desk 2.0
© 2017 Microsoft. All rights reserved. Copyright