Search Results for

    Show / Hide Table of Contents

    Interface INuGetResourceManager

    Namespace: LemonEdge.NuGetManager.Resources
    Assembly: LemonEdge.NuGetManager.dll
    Syntax
    public interface INuGetResourceManager

    Methods

    GetDependencyInfoResource(PackageSource, CancellationToken)

    Creates a NuGet.Protocol.Core.Types.DependencyInfoResource for querying a package's collection of NuGet.Protocol.Core.Types.SourcePackageDependencyInfo

    Declaration
    Task<DependencyInfoResource?> GetDependencyInfoResource(PackageSource source, CancellationToken token = default)
    Parameters
    Type Name Description
    PackageSource source

    The NuGet.Configuration.PackageSource. This can be created via GetPackageSource(string, string, string)

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task<DependencyInfoResource>

    A NuGet.Protocol.Core.Types.DependencyInfoResource

    GetDownloadResource(PackageSource, CancellationToken)

    Creates a NuGet.Protocol.Core.Types.DownloadResource used for downloading a specific package

    Declaration
    Task<DownloadResource> GetDownloadResource(PackageSource source, CancellationToken token = default)
    Parameters
    Type Name Description
    PackageSource source

    The NuGet.Configuration.PackageSource. This can be created via GetPackageSource(string, string, string)

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task<DownloadResource>

    A NuGet.Protocol.Core.Types.DownloadResource

    GetFindPackageByIdResource(PackageSource, CancellationToken)

    Creates a NuGet.Protocol.Core.Types.FindPackageByIdResource for querying a package's collection of NuGet.Versioning.NuGetVersion, checking if a package exists, or querying dependency information

    Declaration
    Task<FindPackageByIdResource?> GetFindPackageByIdResource(PackageSource source, CancellationToken token = default)
    Parameters
    Type Name Description
    PackageSource source

    The NuGet.Configuration.PackageSource. This can be created via GetPackageSource(string, string, string)

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task<FindPackageByIdResource>

    A NuGet.Protocol.Core.Types.FindPackageByIdResource

    GetPackageMetaDataResource(PackageSource, CancellationToken)

    Creates a NuGet.Protocol.Core.Types.PackageMetadataResource for reading package metadata

    Declaration
    Task<PackageMetadataResource> GetPackageMetaDataResource(PackageSource source, CancellationToken token = default)
    Parameters
    Type Name Description
    PackageSource source

    The NuGet.Configuration.PackageSource. This can be created via GetPackageSource(string, string, string)

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task<PackageMetadataResource>

    A NuGet.Protocol.Core.Types.PackageMetadataResource

    GetPackageSearchResource(PackageSource, CancellationToken)

    Creates a NuGet.Protocol.Core.Types.PackageSearchResource used for searching a given NuGet.Configuration.PackageSource for all packages matching provided text

    Declaration
    Task<PackageSearchResource> GetPackageSearchResource(PackageSource source, CancellationToken token = default)
    Parameters
    Type Name Description
    PackageSource source

    The NuGet.Configuration.PackageSource. This can be created via GetPackageSource(string, string, string)

    CancellationToken token

    The cancellation token

    Returns
    Type Description
    Task<PackageSearchResource>

    A NuGet.Protocol.Core.Types.PackageSearchResource

    GetPackageSource(string, string, string)

    Creates a NuGet.Configuration.PackageSource using the provided source (can be a directory, share, or Uri). Will create an authenticated source if a username and password are provided.

    Declaration
    PackageSource GetPackageSource(string source, string username = "", string password = "")
    Parameters
    Type Name Description
    string source

    The package source string (i.e. a directory or Uri)

    string username

    The authentication username (optional)

    string password

    The authentication password (optional)

    Returns
    Type Description
    PackageSource

    A NuGet.Configuration.PackageSource

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.