IContextInitializer

Namespace: Lithnet.Ecma2Framework

Context initializers are called before each import, export or password operation to allow the management agent to perform any required initialization. While import and export providers are each initialized at the start of the operation, context initializers are called only once prior to all operations.

public interface IContextInitializer

Methods

InitializeImportAsync(ImportContext)

Initializes the context prior to any import providers being initialized

Task InitializeImportAsync(ImportContext context)

Parameters

context ImportContext The ImportContext to be shared by the import providers

Returns

Task A task that represents the asynchronous operation

InitializeExportAsync(ExportContext)

Initializes the context prior to any export providers being initialized

Task InitializeExportAsync(ExportContext context)

Parameters

context ExportContext The ExportContext to be shared by the export providers

Returns

Task A task that represents the asynchronous operation

InitializePasswordOperationAsync(PasswordContext)

Initializes the context prior to any password providers being initialized

Task InitializePasswordOperationAsync(PasswordContext context)

Parameters

context PasswordContext The PasswordContext to be shared by the password providers

Returns

Task A task that represents the asynchronous operation

Last updated