/// <summary> /// Removes all specified ways of insuring from the local system, for the current <see cref="CleanUpInsurance"/>. /// The specified assemblies are NOT uninstalled from the global assembly cache. /// </summary> /// <param name="flags">The ways of insuring that need to be disposed.</param> public void Dispose(CleanUpInsuranceFlags flags) { if (flags.IsSpecified(CleanUpInsuranceFlags.TrackByFile)) { DisposeFileInsurance(); } if (flags.IsSpecified((CleanUpInsuranceFlags.TrackByRegistry))) { DisposeRegistryInsurance(); } if (flags.IsSpecified(CleanUpInsuranceFlags.ByWatchService)) { DisposeProcessInsurance(); } }
/// <summary> /// Removes all specified ways of insuring from the local system, for the current <see cref="CleanUpInsurance"/>. /// The specified assemblies are NOT uninstalled from the global assembly cache. /// </summary> /// <param name="flags">The ways of insuring that need to be disposed.</param> public void Dispose(CleanUpInsuranceFlags flags) { if (flags.IsSpecified(CleanUpInsuranceFlags.TrackByFile)) DisposeFileInsurance(); if (flags.IsSpecified((CleanUpInsuranceFlags.TrackByRegistry))) DisposeRegistryInsurance(); if (flags.IsSpecified(CleanUpInsuranceFlags.ByWatchService)) DisposeProcessInsurance(); }