uSignIn.CommonSettings 5.0.0

Prefix Reserved
dotnet add package uSignIn.CommonSettings --version 5.0.0
                    
NuGet\Install-Package uSignIn.CommonSettings -Version 5.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="uSignIn.CommonSettings" Version="5.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="uSignIn.CommonSettings" Version="5.0.0" />
                    
Directory.Packages.props
<PackageReference Include="uSignIn.CommonSettings" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add uSignIn.CommonSettings --version 5.0.0
                    
#r "nuget: uSignIn.CommonSettings, 5.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package uSignIn.CommonSettings@5.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=uSignIn.CommonSettings&version=5.0.0
                    
Install as a Cake Addin
#tool nuget:?package=uSignIn.CommonSettings&version=5.0.0
                    
Install as a Cake Tool

uSignIn.CommonSettings

uSignIn.CommonSettings is an open-source C# class library that provides a wrapper around Common settings in the appsettings.json

Features

  • All common settings that need to used by your project or packages can be accessed via this service

Contributing

We welcome contributions! If you find a bug, have an idea for improvement, please submit an issue or a pull request on GitHub.

Getting Started

NuGet Package

To include uSignIn.CommonSettings in your project, install the NuGet package:

dotnet add package uSignIn.CommonSettings

Then in your appsettings.json add the following sample configuration and change the values to match the details of your credentials to the various services.

  "Settings": {
    "BaseUrl": "https://[YOUR-HOSTNAME]",
    "RequestTimeSpanRangeInMilliseconds": "-120000:120000"
  }

The RequestTimeSpanRangeInMilliseconds example above means that all communication to the server cannot be replayed, as the server timestamp needs to match the client timestamp allowed within a range of -120 seconds to 120 seconds.

After the above is done, you can just Dependency inject the SettingsService in your C# class.

For example:

Here is a Sample Service SampleService C# class that injects the SettingsService and then uses the _settingsService.BaseUri

using uSignIn.CommonSettings.Settings;

namespace Test.Stuff
{
	public sealed class SampleService
	{
		private readonly SettingsService _settingsService;

		public SampleService(
			SettingsService settingsService
		{
			_settingsService = settingsService;
		}
		internal string NotificationUrl => new Uri(_settingsService.BaseUri, "/helloWorld").ToString();
	}
}

GitHub Repository

Visit our GitHub repository for the latest updates, documentation, and community contributions. https://github.com/prmeyn/CommonSettings

License

This project is licensed under the GNU GENERAL PUBLIC LICENSE.

Happy coding! 🚀🌐📚

Product 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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on uSignIn.CommonSettings:

Package Downloads
SMSwitch

Package Description

EmailSwitch

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0 221 4/12/2025
4.0.3 318 2/17/2025
4.0.2 183 1/30/2025
4.0.1 111 1/30/2025
4.0.0 141 1/8/2025
3.1.0 239 8/7/2024
3.0.0 110 8/6/2024
2.1.0 259 7/21/2024
2.0.0 188 7/21/2024
1.0.0 143 7/21/2024