Table of Contents

Class PluginPackageService

Namespace
Builvero.Infrastructure.Services
Assembly
Builvero.Infrastructure.dll

Service for processing plugin ZIP packages.

public class PluginPackageService : IPluginPackageService
Inheritance
PluginPackageService
Implements
Inherited Members

Constructors

PluginPackageService(IObjectStorage, PluginManifestValidator, ILogger<PluginPackageService>, IConfiguration)

public PluginPackageService(IObjectStorage objectStorage, PluginManifestValidator manifestValidator, ILogger<PluginPackageService> logger, IConfiguration configuration)

Parameters

objectStorage IObjectStorage
Service for processing plugin ZIP packages.
manifestValidator PluginManifestValidator
Service for processing plugin ZIP packages.
logger ILogger<PluginPackageService>
Service for processing plugin ZIP packages.
configuration IConfiguration
Service for processing plugin ZIP packages.

Methods

GeneratePluginZipUploadUrlAsync(Guid, string, CancellationToken)

Generates a presigned URL for uploading a plugin ZIP package.

public Task<(string UploadUrl, string ObjectKey)> GeneratePluginZipUploadUrlAsync(Guid pluginId, string version, CancellationToken ct = default)

Parameters

pluginId Guid
Service for processing plugin ZIP packages.
version string
Service for processing plugin ZIP packages.
ct CancellationToken
Service for processing plugin ZIP packages.

Returns

Task<(string UploadUrl, string ObjectKey)>
Service for processing plugin ZIP packages.

ProcessPluginPackageAsync(Stream, string, CancellationToken)

Processes a plugin ZIP package: extracts manifest, validates, and stores in S3.

public Task<PluginPackageResult> ProcessPluginPackageAsync(Stream zipStream, string fileName, CancellationToken ct = default)

Parameters

zipStream Stream
Service for processing plugin ZIP packages.
fileName string
Service for processing plugin ZIP packages.
ct CancellationToken
Service for processing plugin ZIP packages.

Returns

Task<PluginPackageResult>
Service for processing plugin ZIP packages.