Table of Contents

Class SourceCacheContext

Namespace
NuGet.Protocol.Core.Types
Assembly
NuGet.Protocol.dll
public class SourceCacheContext : IDisposable
Inheritance
SourceCacheContext
Implements
Derived
Inherited Members
Extension Methods

Constructors

SourceCacheContext()

public SourceCacheContext()

Properties

DirectDownload

public bool DirectDownload { get; set; }

Property Value

bool

GeneratedTempFolder

public virtual string GeneratedTempFolder { get; set; }

Property Value

string

IgnoreFailedSources

public bool IgnoreFailedSources { get; set; }

Property Value

bool

MaxAge

public DateTimeOffset? MaxAge { get; set; }

Property Value

DateTimeOffset?

MaxAgeTimeSpan

public TimeSpan MaxAgeTimeSpan { get; }

Property Value

TimeSpan

NoCache

public bool NoCache { get; set; }

Property Value

bool

RefreshMemoryCache

public bool RefreshMemoryCache { get; set; }

Property Value

bool

SessionId

public Guid SessionId { get; set; }

Property Value

Guid

Methods

Clone()

public virtual SourceCacheContext Clone()

Returns

SourceCacheContext

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

WithRefreshCacheTrue()

public virtual SourceCacheContext WithRefreshCacheTrue()

Returns

SourceCacheContext