ProReception.DistributionServerInfrastructure
2.0.2
dotnet add package ProReception.DistributionServerInfrastructure --version 2.0.2
NuGet\Install-Package ProReception.DistributionServerInfrastructure -Version 2.0.2
<PackageReference Include="ProReception.DistributionServerInfrastructure" Version="2.0.2" />
paket add ProReception.DistributionServerInfrastructure --version 2.0.2
#r "nuget: ProReception.DistributionServerInfrastructure, 2.0.2"
// Install ProReception.DistributionServerInfrastructure as a Cake Addin #addin nuget:?package=ProReception.DistributionServerInfrastructure&version=2.0.2 // Install ProReception.DistributionServerInfrastructure as a Cake Tool #tool nuget:?package=ProReception.DistributionServerInfrastructure&version=2.0.2
Pro Reception Distribution Server Infrastructure
Helper library with common infrastructure code for our distributed apps
Status
How to use
- Install via NuGet:
Install-Package ProReception.DistributionServerInfrastructure
- Add custom settings:
- Create new class for storing your settings, which inherits from
BaseSettings
using DistributionServerInfrastructure.Settings.Models; public class MySettings : BaseSettings { }
- Create new
ISettingsManager
interface, which inherits fromISettingsManagerBase
using DistributionServerInfrastructure.Settings; public interface ISettingsManager : ISettingsManagerBase { }
- Create new
SettingsManager
class, which inherits fromSettingsManagerBase
and implementsISettingsManager
using DistributionServerInfrastructure.Settings; public class SettingsManager : SettingsManagerBase<MySettings>, ISettingsManager { public SettingsManager(string appName, string cryptKey, string authKey) : base(appName, cryptKey, authKey) { } }
- Create new class for storing your settings, which inherits from
- In your
Program.cs
file, create a new instance of yourSettingsManager
class, and add the infrastructure configurationvar settingsManager = new SettingsManager( "My App Name", "some crypt key", "some auth key"); builder.AddProReceptionDistributionServerInfrastructure<ISettingsManager, SettingsManager>(settingsManager);
- Use the infrastructure config after building the app:
app.UseProReceptionDistributionServerInfrastructure();
Configuration
These are the expected configuration values.
Pro Reception API
There has to be a section in the configuration called ProReceptionApi
:
{
"ProReceptionApi": {
"BaseUrl": "https://localhost:7016"
}
}
Components
The components can be used inside your Razor views.
Pro Reception login component
@using ProReception.DistributionServerInfrastructure.Components
<ProReceptionConnection />
Logs component
@using ProReception.DistributionServerInfrastructure.Components
<Logs />
MudBlazor
There is an issue when using MudBlazor from an app running as a Windows Service. See my question on StackOverflow here.
So, my work around is to host the MudBlazor CSS and JS files on Azure storage, and load them from there. This means that every time I update the MudBlazor library, I also need to add the new CSS and JS files to the Azure storage.
To get the CSS and JS files for a specific version, I create a new app, and then copy the files when the app is running.
dotnet new install MudBlazor.Templates
mkdir -p mud-test/MyApplication
dotnet new mudblazor --interactivity Server --name MyApplication --all-interactive --output mud-test/MyApplication
dotnet new sln -n MyApp -o mud-test
dotnet sln mud-test/MyApp.sln add mud-test/MyApplication/MyApplication.csproj
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. |
-
net9.0
- AuthenticatedEncryption (>= 2.0.0)
- FluentValidation (>= 11.11.0)
- Flurl.Http (>= 4.0.2)
- JetBrains.Annotations (>= 2024.3.0)
- Microsoft.AspNetCore.Components.Web (>= 9.0.1)
- Microsoft.AspNetCore.SignalR.Client (>= 9.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.1)
- MudBlazor (>= 8.1.0)
- Polly.Core (>= 8.5.1)
- Polly.RateLimiting (>= 8.5.1)
- Serilog.AspNetCore (>= 9.0.0)
- Serilog.Sinks.File (>= 6.0.0)
- Serilog.Sinks.Observable (>= 3.0.0)
- System.IdentityModel.Tokens.Jwt (>= 8.3.1)
- System.Reactive (>= 6.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.2 | 27 | 2/1/2025 |
1.1.2 | 85 | 12/23/2024 |
1.1.1 | 77 | 12/23/2024 |
1.1.0 | 108 | 10/23/2024 |
1.0.0 | 99 | 10/23/2024 |
0.2.0 | 118 | 7/9/2024 |
0.1.19 | 112 | 7/9/2024 |
0.1.18 | 108 | 7/9/2024 |
0.1.17 | 134 | 6/18/2024 |
0.1.16 | 123 | 4/24/2024 |
0.1.15 | 130 | 4/16/2024 |
0.1.14 | 138 | 4/1/2024 |
0.1.13 | 140 | 3/6/2024 |
0.1.12 | 143 | 3/6/2024 |
0.1.11 | 143 | 3/6/2024 |
0.1.10 | 127 | 3/6/2024 |
0.1.9 | 132 | 3/6/2024 |
0.1.8 | 138 | 2/27/2024 |
0.1.7 | 121 | 2/24/2024 |
0.1.6 | 129 | 2/21/2024 |
0.1.5 | 143 | 2/21/2024 |
0.1.4 | 138 | 2/21/2024 |
0.1.3 | 136 | 2/15/2024 |
0.1.2 | 119 | 2/15/2024 |
0.1.1 | 140 | 2/6/2024 |
0.1.0 | 124 | 2/6/2024 |
0.0.28 | 114 | 2/6/2024 |
0.0.27 | 140 | 1/24/2024 |
0.0.26 | 241 | 11/14/2023 |
0.0.25 | 175 | 9/13/2023 |
0.0.24 | 157 | 9/5/2023 |
0.0.23 | 184 | 8/15/2023 |
0.0.22 | 160 | 8/15/2023 |
0.0.21 | 172 | 7/26/2023 |
0.0.20 | 187 | 7/12/2023 |
0.0.19 | 192 | 7/12/2023 |
0.0.18 | 213 | 7/5/2023 |
0.0.17 | 203 | 7/5/2023 |
0.0.16 | 184 | 6/22/2023 |
0.0.15 | 192 | 6/13/2023 |
0.0.14 | 189 | 6/13/2023 |
0.0.13 | 165 | 6/13/2023 |
0.0.12 | 191 | 6/11/2023 |
0.0.11 | 188 | 6/6/2023 |
0.0.10 | 214 | 4/11/2023 |
0.0.9 | 247 | 3/15/2023 |
0.0.8 | 250 | 3/15/2023 |
0.0.7 | 226 | 3/15/2023 |
0.0.6 | 246 | 3/15/2023 |
0.0.5 | 227 | 3/15/2023 |
0.0.4 | 239 | 3/15/2023 |
0.0.3 | 231 | 3/15/2023 |
0.0.2 | 219 | 3/15/2023 |
0.0.1 | 211 | 3/15/2023 |