C# Class ThirdLicense.NuGetProtocolInspector

Represents a NuGet package inspector by providing with its metadata.
Inheritance: IDisposable
显示文件 Open project: pleonex/ThirdLicense Class Usage Examples

Public Methods

Method Description
AddDefaultEndpointsAsync ( ) : Task

Adds all the NuGet enabled endpoints configured in the system.

This methods reads the system configuration as well as the NuGet configuration files from the current working directory.

AddEndpointAsync ( string endpoint ) : Task

Adds an additional NuGet endpoint.

Dispose ( ) : void

Releases the resources of the object.

InspectAsync ( PackageIdentity packageId ) : Task

Inspects a NuGet package to provide with its metadata.

NuGetProtocolInspector ( ) : System

Initializes a new instance of the NuGetProtocolInspector class.

Private Methods

Method Description
AddRepositoryAsync ( PackageSource source ) : Task
InpsectFromRepoAsync ( PackageIdentity packageId, FindPackageByIdResource repo ) : Task
InspectPackageAsync ( PackageIdentity packageId ) : Task

Method Details

AddDefaultEndpointsAsync() public method

Adds all the NuGet enabled endpoints configured in the system.
This methods reads the system configuration as well as the NuGet configuration files from the current working directory.
public AddDefaultEndpointsAsync ( ) : Task
return Task

AddEndpointAsync() public method

Adds an additional NuGet endpoint.
public AddEndpointAsync ( string endpoint ) : Task
endpoint string The NuGet endpoint.
return Task

Dispose() public method

Releases the resources of the object.
public Dispose ( ) : void
return void

InspectAsync() public method

Inspects a NuGet package to provide with its metadata.
public InspectAsync ( PackageIdentity packageId ) : Task
packageId PackageIdentity The package identifier to inspect.
return Task

NuGetProtocolInspector() public method

Initializes a new instance of the NuGetProtocolInspector class.
public NuGetProtocolInspector ( ) : System
return System