C# Class NuGet.VisualStudio.VsPersistencePackageSettingsManager

Inheritance: SettingsManagerBase, IPersistencePackageSettingsManager
Mostra file Open project: xero-github/Nuget

Public Methods

Method Description
ClearPackageMetadata ( ) : void
LoadPackageMetadata ( int maximumCount ) : IEnumerable
SavePackageMetadata ( IEnumerable packageMetadata ) : void

Save the specified package metadata to VS settings store, which is the registry.

Here is how we save the data in the registry: NuGet Mru Package0 -------> | Id: Moq Package1 | Version: 1.0.0.0 Package2 | LastUsed: (date time in a long number) Package3

VsPersistencePackageSettingsManager ( ) : System
VsPersistencePackageSettingsManager ( IServiceProvider serviceProvider ) : System

Private Methods

Method Description
ConvertFromDateTimeToString ( System.DateTime dateTime ) : string
ConvertFromStringToDateTime ( string value ) : System.DateTime

Method Details

ClearPackageMetadata() public method

public ClearPackageMetadata ( ) : void
return void

LoadPackageMetadata() public method

public LoadPackageMetadata ( int maximumCount ) : IEnumerable
maximumCount int
return IEnumerable

SavePackageMetadata() public method

Save the specified package metadata to VS settings store, which is the registry.
Here is how we save the data in the registry: NuGet Mru Package0 -------> | Id: Moq Package1 | Version: 1.0.0.0 Package2 | LastUsed: (date time in a long number) Package3
public SavePackageMetadata ( IEnumerable packageMetadata ) : void
packageMetadata IEnumerable
return void

VsPersistencePackageSettingsManager() public method

public VsPersistencePackageSettingsManager ( ) : System
return System

VsPersistencePackageSettingsManager() public method

public VsPersistencePackageSettingsManager ( IServiceProvider serviceProvider ) : System
serviceProvider IServiceProvider
return System