Table of Contents

Delegate ExtractPackageFileDelegate

Namespace
NuGet.Packaging.Core
Assembly
Chocolatey.NuGet.Packaging.dll

Callback invoked to extract a package file.

public delegate string ExtractPackageFileDelegate(string sourceFile, string targetPath, Stream fileStream)

Parameters

sourceFile string

The path of the file in the package.

targetPath string

The path to write to.

fileStream Stream

The file Stream.

Returns

string

The file name if the file was written; otherwise null.

Constructors

ExtractPackageFileDelegate(object, nint)

public ExtractPackageFileDelegate(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(string, string, Stream, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(string sourceFile, string targetPath, Stream fileStream, AsyncCallback callback, object @object)

Parameters

sourceFile string
targetPath string
fileStream Stream
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual string EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

string

Invoke(string, string, Stream)

public virtual string Invoke(string sourceFile, string targetPath, Stream fileStream)

Parameters

sourceFile string
targetPath string
fileStream Stream

Returns

string