> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Method UpdateSourceAsync

Namespace: [Phoenix.ComponentAPI](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.ComponentAPI)\
Assembly: Phoenix.ComponentAPI.dll

## UpdateSourceAsync(IPacz, string, bool)

Generally meant to be used only internally by Phoenix Integration. Allows the
out of process host executable to reuse the directory already extracted by the OEM
process. Changes the value of `Phoenix.PaczAPI.IReadOnlyExtractedPacz.PaczSource`,
`Phoenix.PaczAPI.IReadOnlyExtractedPacz.ExtractionFolder`, and whether the extraction
folder should be deleted on dispose.
This also ReReads the Config from the new ExtractionFolder

```csharp theme={null}
Task UpdateSourceAsync(IPacz newSource, string extractionFolder, bool deleteOnDispose)

```

### Parameters

`newSource` [IPacz](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.PaczAPI.IPacz)

The new source pacz for this writer

`extractionFolder` [string](https://learn.microsoft.com/dotnet/api/system.string)

The new extraction folder for this writer

`deleteOnDispose` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

Whether the extraction folder should be deleted on dispose

### Returns

[Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task)

A task that indicates when the work is completed
