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
stringoutputStream
StreamexchangeIds
HashSet<int>When not null pack only provided exchanged ids, if not pack all found exchanges
Returns
ReadConnections(IReadOnlyCollection<PackableFile>)
Read all connections from a collection of PackableFile
public static IEnumerable<ConnectionInfo> ReadConnections(IReadOnlyCollection<PackableFile> packableFiles)
Parameters
packableFiles
IReadOnlyCollection<PackableFile>
Returns
ReadExchanges(IReadOnlyCollection<PackableFile>)
Read all exchanges from a collection of PackableFile
public static IEnumerable<ExchangeInfo> ReadExchanges(IReadOnlyCollection<PackableFile> packableFiles)
Parameters
packableFiles
IReadOnlyCollection<PackableFile>
Returns
ShouldApplyTo(string)
Check if the provided file name applies to this packager
public abstract bool ShouldApplyTo(string fileName)
Parameters
fileName
string