Show / Hide Table of Contents

Class UpstreamUpdatesSource

Retrieves updates from the Microsoft Update catalog or a WSUS upstream server.

Inheritance
System.Object
UpstreamUpdatesSource
Implements
IMetadataSource
Namespace: Microsoft.PackageGraph.MicrosoftUpdate.Source
Assembly: package-graph-microsoftupdate-source.dll
Syntax
public class UpstreamUpdatesSource : IMetadataSource

Constructors

| Improve this Doc View Source

UpstreamUpdatesSource(Endpoint, UpstreamSourceFilter)

Create a new MicrosoftUpdate package source that retrieves updates from the specified endpoint

Declaration
public UpstreamUpdatesSource(Endpoint upstreamEndpoint, UpstreamSourceFilter filter)
Parameters
Type Name Description
Endpoint upstreamEndpoint

Endpoint to get updates from

UpstreamSourceFilter filter

Filter to apply when retrieving updates from this source.

Methods

| Improve this Doc View Source

ContainsMetadata(IPackageIdentity)

Not implemented for an upstream update source

Declaration
public bool ContainsMetadata(IPackageIdentity packageIdentity)
Parameters
Type Name Description
IPackageIdentity packageIdentity

Indentity of package to lookup

Returns
Type Description
System.Boolean

True if found, false otherwise

Exceptions
Type Condition
System.NotImplementedException
| Improve this Doc View Source

CopyTo(IMetadataSink, IMetadataFilter, CancellationToken)

Copies select package metadata from this source to the target metadata sink

Declaration
public void CopyTo(IMetadataSink destination, IMetadataFilter filter, CancellationToken cancelToken)
Parameters
Type Name Description
IMetadataSink destination

Metadata destination

IMetadataFilter filter

Filter to apply during copy

System.Threading.CancellationToken cancelToken

Cancellation token

| Improve this Doc View Source

CopyTo(IMetadataSink, CancellationToken)

Copies all package metadata from this source to the target metadata sink

Declaration
public void CopyTo(IMetadataSink destination, CancellationToken cancelToken)
Parameters
Type Name Description
IMetadataSink destination

Metadata destination

System.Threading.CancellationToken cancelToken

Cancellation token

| Improve this Doc View Source

GetFiles<T>(IPackageIdentity)

Not implemented for an upstream update source

Declaration
public List<T> GetFiles<T>(IPackageIdentity packageIdentity)
Parameters
Type Name Description
IPackageIdentity packageIdentity

Identity of the package to retrieve files for.

Returns
Type Description
System.Collections.Generic.List<T>

List of files in the package

Type Parameters
Name Description
T

Type of file to retrieve.

Exceptions
Type Condition
System.NotImplementedException
| Improve this Doc View Source

GetMetadata(IPackageIdentity)

Not implemented for an upstream update source

Declaration
public Stream GetMetadata(IPackageIdentity packageIdentity)
Parameters
Type Name Description
IPackageIdentity packageIdentity

Identity of update to retrieve

Returns
Type Description
System.IO.Stream

Update metadata as stream

Exceptions
Type Condition
System.NotImplementedException

Events

| Improve this Doc View Source

MetadataCopyProgress

Progress indicator during metadata copy operations

Declaration
public event EventHandler<PackageStoreEventArgs> MetadataCopyProgress
Event Type
Type Description
System.EventHandler<PackageStoreEventArgs>
| Improve this Doc View Source

OpenProgress

Progress indicator during source open operations. Not used by UpstreamUpdatesSource.

Declaration
public event EventHandler<PackageStoreEventArgs> OpenProgress
Event Type
Type Description
System.EventHandler<PackageStoreEventArgs>

Implements

IMetadataSource
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX