Franz.Common.IO
1.2.62
dotnet add package Franz.Common.IO --version 1.2.62
NuGet\Install-Package Franz.Common.IO -Version 1.2.62
<PackageReference Include="Franz.Common.IO" Version="1.2.62" />
paket add Franz.Common.IO --version 1.2.62
#r "nuget: Franz.Common.IO, 1.2.62"
// Install Franz.Common.IO as a Cake Addin #addin nuget:?package=Franz.Common.IO&version=1.2.62 // Install Franz.Common.IO as a Cake Tool #tool nuget:?package=Franz.Common.IO&version=1.2.62
Franz.Common.IO
A utility library within the Franz Framework designed to simplify input/output operations in .NET applications. This package provides streamlined solutions for managing temporary files and file streams, ensuring efficient and clean file handling.
Features
- Temporary File Management:
DeleteTemporaryFileAfterReadingStream
for safely handling temporary files and ensuring cleanup after file operations.
Version Information
- Current Version: 1.2.62
- Part of the private Franz Framework ecosystem.
Dependencies
This package is designed to operate independently and does not have external dependencies, making it lightweight and easy to integrate.
Installation
From Private Azure Feed
Since this package is hosted privately, configure your NuGet client:
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.IO --version 1.2.62
Usage
1. Handle Temporary Files
Use DeleteTemporaryFileAfterReadingStream
to ensure temporary files are deleted after being read:
using Franz.Common.IO;
public class MyService
{
public void ProcessFile(Stream stream)
{
using var temporaryFileStream = new DeleteTemporaryFileAfterReadingStream(stream);
// Read or process the stream
// The temporary file will be deleted after the stream is closed
}
}
This approach ensures temporary files are cleaned up automatically after their intended usage.
Integration with Franz Framework
The Franz.Common.IO package is a lightweight addition to the Franz Framework and can be used alongside other Franz libraries without any dependencies.
Contributing
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
- Clone the repository.
- Create a feature branch.
- Submit a pull request for review.
License
This library is licensed under the MIT License. See the LICENSE
file for more details.
Changelog
Version 1.2.62
- Added
DeleteTemporaryFileAfterReadingStream
for efficient temporary file handling.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Franz.Common.IO:
Package | Downloads |
---|---|
Franz.Common.Http.Client
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.62 | 30 | 1/8/2025 |