C# Class NuGet.DataServicePackageRepository

Mostrar archivo Open project: xero-github/Nuget Class Usage Examples

Private Properties

Property Type Description
Escape string
OnReadingEntity void
OnSendingRequest void
ToString string

Public Methods

Method Description
Clone ( ) : IPackageRepository
DataServicePackageRepository ( IHttpClient client ) : System
DataServicePackageRepository ( IHttpClient client, PackageDownloader packageDownloader ) : System
DataServicePackageRepository ( Uri serviceRoot ) : System
FindPackagesById ( string packageId ) : IEnumerable
GetPackages ( ) : IQueryable
GetUpdates ( IEnumerable packages, bool includePrerelease, bool includeAllVersions, IEnumerable targetFramework ) : IEnumerable
Search ( string searchTerm, IEnumerable targetFrameworks, bool allowPrereleaseVersions ) : IQueryable

Private Methods

Method Description
Escape ( string value ) : string

Escapes single quotes in the value by replacing them with two single quotes.

OnReadingEntity ( object sender, System.Data.Services.Client.ReadingWritingEntityEventArgs e ) : void
OnSendingRequest ( object sender, System.Data.Services.Client.SendingRequestEventArgs e ) : void
ToString ( bool value ) : string

Method Details

Clone() public method

public Clone ( ) : IPackageRepository
return IPackageRepository

DataServicePackageRepository() public method

public DataServicePackageRepository ( IHttpClient client ) : System
client IHttpClient
return System

DataServicePackageRepository() public method

public DataServicePackageRepository ( IHttpClient client, PackageDownloader packageDownloader ) : System
client IHttpClient
packageDownloader PackageDownloader
return System

DataServicePackageRepository() public method

public DataServicePackageRepository ( Uri serviceRoot ) : System
serviceRoot System.Uri
return System

FindPackagesById() public method

public FindPackagesById ( string packageId ) : IEnumerable
packageId string
return IEnumerable

GetPackages() public method

public GetPackages ( ) : IQueryable
return IQueryable

GetUpdates() public method

public GetUpdates ( IEnumerable packages, bool includePrerelease, bool includeAllVersions, IEnumerable targetFramework ) : IEnumerable
packages IEnumerable
includePrerelease bool
includeAllVersions bool
targetFramework IEnumerable
return IEnumerable

Search() public method

public Search ( string searchTerm, IEnumerable targetFrameworks, bool allowPrereleaseVersions ) : IQueryable
searchTerm string
targetFrameworks IEnumerable
allowPrereleaseVersions bool
return IQueryable