![]() |
VOOZH | about |
dotnet add package Franz.Common.Hosting --version 2.2.7
NuGet\Install-Package Franz.Common.Hosting -Version 2.2.7
<PackageReference Include="Franz.Common.Hosting" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Hosting" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Hosting" />Project file
paket add Franz.Common.Hosting --version 2.2.7
#r "nuget: Franz.Common.Hosting, 2.2.7"
#:package Franz.Common.Hosting@2.2.7
#addin nuget:?package=Franz.Common.Hosting&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Hosting&version=2.2.7Install as a Cake Tool
A utility library within the Franz Framework designed to simplify and enhance hosting configurations for .NET applications. This package provides powerful extensions for working with hosts and service providers, offering flexibility and consistency in application startup and lifecycle management.
HostExtensions for managing and customizing host configurations.ServiceProviderExtensions for streamlined service resolution and initialization.IHostingInitializer interface to define and manage hosting initialization logic.-Current Version: v2.2.7
This package relies on:
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.Hosting
Use HostExtensions to configure the host:
using Franz.Common.Hosting.Extensions;
var host = Host.CreateDefaultBuilder(args)
.ConfigureServices((context, services) =>
{
// Register services here
})
.UseCustomConfiguration() // Custom extension method for host configuration
.Build();
await host.RunAsync();
Use ServiceProviderExtensions to resolve and manage services dynamically:
using Franz.Common.Hosting.Extensions;
var service = host.Services.GetRequiredServiceWithLogging<IMyService>();
service.Execute();
Implement the IHostingInitializer interface for initializing hosting environments:
using Franz.Common.Hosting;
public class MyHostingInitializer : IHostingInitializer
{
public void Initialize(IHostBuilder hostBuilder)
{
hostBuilder.ConfigureServices((context, services) =>
{
services.AddSingleton<IMyService, MyService>();
});
}
}
Register the initializer during application startup:
hostBuilder.UseHostingInitializer<MyHostingInitializer>();
The Franz.Common.Hosting package integrates seamlessly with:
Ensure these dependencies are installed to leverage the full capabilities of the library.
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
This library is licensed under the MIT License. See the LICENSE file for more details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Franz.Common.Hosting:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.Hosting
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.Kafka
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Bootstrap
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.RabbitMQ
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.Hosting.RabbitMQ
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 224 | 6/7/2026 |
| 2.2.6 | 227 | 6/6/2026 |
| 2.2.5 | 235 | 6/4/2026 |
| 2.2.4 | 222 | 6/3/2026 |
| 2.2.3 | 221 | 6/2/2026 |
| 2.2.2 | 229 | 6/2/2026 |
| 2.2.1 | 228 | 5/24/2026 |
| 2.1.4 | 212 | 4/27/2026 |
| 2.1.3 | 190 | 4/26/2026 |
| 2.1.2 | 193 | 4/26/2026 |
| 2.1.1 | 201 | 4/22/2026 |
| 2.0.2 | 210 | 3/30/2026 |
| 2.0.1 | 206 | 3/29/2026 |
| 1.7.8 | 204 | 3/2/2026 |
| 1.7.7 | 219 | 1/31/2026 |
| 1.7.6 | 219 | 1/22/2026 |
| 1.7.5 | 224 | 1/10/2026 |
| 1.7.4 | 218 | 12/27/2025 |
| 1.7.3 | 311 | 12/22/2025 |
| 1.7.2 | 299 | 12/21/2025 |