IGuardedOperations2 Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Operations that guard calls to extensions code, track performance and log errors.
public interface class IGuardedOperations2 : Microsoft::VisualStudio::Utilities::IGuardedOperations
public interface IGuardedOperations2 : Microsoft.VisualStudio.Utilities.IGuardedOperations
type IGuardedOperations2 = interface
interface IGuardedOperations
Public Interface IGuardedOperations2
Implements IGuardedOperations
- Implements
Remarks
This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.
Methods
CallExtensionPoint(Action) |
Makes a guarded call to an extension point. (Inherited from IGuardedOperations) |
CallExtensionPoint(Object, Action, Predicate<Exception>) |
Makes a guarded call to an extension point. (Inherited from IGuardedOperations) |
CallExtensionPoint(Object, Action) |
Makes a guarded call to an extension point. (Inherited from IGuardedOperations) |
CallExtensionPoint<T>(Func<T>, T) |
Makes a guarded call to an extension point. (Inherited from IGuardedOperations) |
CallExtensionPoint<T>(Object, Func<T>, T) |
Makes a guarded call to an extension point. (Inherited from IGuardedOperations) |
CallExtensionPointAsync(Func<Task>) |
Makes a guarded call to an async extension point. (Inherited from IGuardedOperations) |
CallExtensionPointAsync(Object, Func<Task>) |
Makes a guarded call to an async extension point. (Inherited from IGuardedOperations) |
CallExtensionPointAsync<T>(Func<Task<T>>, T) |
Makes a guarded call to an async extension point. (Inherited from IGuardedOperations) |
CallExtensionPointAsync<T>(Object, Func<Task<T>>, T) |
Makes a guarded call to an async extension point. (Inherited from IGuardedOperations) |
FindEligibleFactories<TExtensionFactory,TMetadataView>(IEnumerable<Lazy<TExtensionFactory,TMetadataView>>, IContentType, IContentTypeRegistryService) |
Selects extension factories whose declared content type metadata matches the provided target content type, taking into account that extension factory may be disabled by a Replace attribute on another factory. (Inherited from IGuardedOperations) |
HandleException(Object, Exception) |
Handles an exception occured in a call to an extension point. (Inherited from IGuardedOperations) |
InstantiateExtension<TExtension,TMetadata,TExtensionInstance>(Object, Lazy<TExtension,TMetadata>, Func<TExtension,TExtensionInstance>) |
Safely invokes a delegate on the extension point. (Inherited from IGuardedOperations) |
InstantiateExtension<TExtension,TMetadata>(Object, Lazy<TExtension,TMetadata>) |
Safely instantiates an extension point. (Inherited from IGuardedOperations) |
InstantiateExtension<TExtension>(Object, Lazy<TExtension>) |
Safely instantiates an extension point. (Inherited from IGuardedOperations) |
InvokeBestMatchingFactory<TExtension,TMetadataView>(IList<Lazy<TExtension,TMetadataView>>, IContentType, IContentTypeRegistryService, Object) |
Safely instantiates an extension point whose declared content type metadata is the closest match to the provided target content type. (Inherited from IGuardedOperations) |
InvokeBestMatchingFactory<TExtensionFactory,TExtensionInstance, TMetadataView>(IList<Lazy<TExtensionFactory,TMetadataView>>, IContentType, Func<TExtensionFactory,TExtensionInstance>, IContentTypeRegistryService, Object) |
Safely invokes a delegate on the extension factory whose declared content type metadata is the best match to the provided target content type. (Inherited from IGuardedOperations) |
InvokeEligibleFactories<TExtensionInstance,TExtensionFactory, TMetadataView>(IEnumerable<Lazy<TExtensionFactory,TMetadataView>>, Func<TExtensionFactory,TExtensionInstance>, IContentType, IContentTypeRegistryService, Object) |
Safely invokes a delegate on all extension factories whose declared content type metadata matches the provided target content type, taking into account that extension factory may be disabled by a Replace attribute on another factory. (Inherited from IGuardedOperations) |
InvokeMatchingFactories<TExtensionInstance,TExtensionFactory, TMetadataView>(IEnumerable<Lazy<TExtensionFactory,TMetadataView>>, Func<TExtensionFactory,TExtensionInstance>, IContentType, Object) |
Safely invokes a delegate on all extension factories whose declared content type metadata matches the provided target content type. (Inherited from IGuardedOperations) |
LogException(Object, Exception) |
Logs an exception silently, without notifying the user. |
RaiseEvent(Object, EventHandler) |
Safely raises an event with empty EventArgs. Errors are tracked per sender, performance is tracked per handler. (Inherited from IGuardedOperations) |
RaiseEvent<TArgs>(Object, EventHandler<TArgs>, TArgs) |
Safely raises an event with specified |
RaiseEventOnBackgroundAsync<TArgs>(Object, AsyncEventHandler<TArgs>, TArgs) |
Safely raises an event on a background thread with specified |
TryCastToType<TArgs>(Object, TArgs) |
Safely attempts to cast the given object to the given type. (Inherited from IGuardedOperations) |