ICodeCleanUpFixerRegistrationService Interface

Definition

Service to register, unregister, and enumerate available code clean up fixers. The methods and properties on this class are thread safe.

public interface class ICodeCleanUpFixerRegistrationService
public interface ICodeCleanUpFixerRegistrationService
type ICodeCleanUpFixerRegistrationService = interface
Public Interface ICodeCleanUpFixerRegistrationService

Examples

This MEF component should be imported as

[Import]
private ICodeCleanUpFixerRegistrationService FixerRegistrationService;

Properties

AllFixIds

Gets the set of all fix ids

RegisteredFixerProviders

Gets a snapshot of the current set of registered fixer providers

Methods

TryRegisterFixerProvider(ICodeCleanUpFixerProvider)

Register a fixer provider which can participate in code cleanup. If the same instance of the provider is registered again only one instance will be kept Fixer providers should be registered when the language service or extension is initialzed

TryUnRegisterFixerProvider(ICodeCleanUpFixerProvider)

Unregister a fixer provider Fixer providers should be unregistered when the language service or extension is disposed

Applies to