Table of Contents

Class DirectoryPackager

Namespace
Fluxzy
Assembly
Fluxzy.Core.dll

Base class for directory packagers

public abstract class DirectoryPackager
Inheritance
DirectoryPackager
Derived
Inherited Members

Methods

Pack(string, Stream, HashSet<int>?)

Pack a directory into a stream

public abstract Task Pack(string directory, Stream outputStream, HashSet<int>? exchangeIds)

Parameters

directory string
outputStream Stream
exchangeIds HashSet<int>

When not null pack only provided exchanged ids, if not pack all found exchanges

Returns

Task

ReadConnections(IReadOnlyCollection<PackableFile>)

Read all connections from a collection of PackableFile

public static IEnumerable<ConnectionInfo> ReadConnections(IReadOnlyCollection<PackableFile> packableFiles)

Parameters

packableFiles IReadOnlyCollection<PackableFile>

Returns

IEnumerable<ConnectionInfo>

ReadExchanges(IReadOnlyCollection<PackableFile>)

Read all exchanges from a collection of PackableFile

public static IEnumerable<ExchangeInfo> ReadExchanges(IReadOnlyCollection<PackableFile> packableFiles)

Parameters

packableFiles IReadOnlyCollection<PackableFile>

Returns

IEnumerable<ExchangeInfo>

ShouldApplyTo(string)

Check if the provided file name applies to this packager

public abstract bool ShouldApplyTo(string fileName)

Parameters

fileName string

Returns

bool