Infrastructure.Shared
1.0.3
dotnet add package Infrastructure.Shared --version 1.0.3
NuGet\Install-Package Infrastructure.Shared -Version 1.0.3
<PackageReference Include="Infrastructure.Shared" Version="1.0.3" />
<PackageVersion Include="Infrastructure.Shared" Version="1.0.3" />
<PackageReference Include="Infrastructure.Shared" />
paket add Infrastructure.Shared --version 1.0.3
#r "nuget: Infrastructure.Shared, 1.0.3"
#:package Infrastructure.Shared@1.0.3
#addin nuget:?package=Infrastructure.Shared&version=1.0.3
#tool nuget:?package=Infrastructure.Shared&version=1.0.3
About
The package contains services, helpers, models, etc. general purpose for .NET of applications.
How to Use
var pageOptions = new Shared.Models.PageOptionsModel
{
PageNumber = 1,
PageSize = 10
};
var message = string.Empty;
var pageOptionsSerialized = await JsonSerializationService.SerializeAsync(pageOptions);
var pageOptionsDeserialized = await JsonSerializationService.DeserializeAsync<Shared.Models.PageOptionsModel>(pageOptionsSerialized);
if (pageOptionsDeserialized.PageNumber == pageOptions.PageNumber &&
pageOptionsDeserialized.PageSize == pageOptions.PageSize)
{
message = "The serialization and deserialization was successful!";
}
else
{
message = "The serialization and deserialization was unsuccessful!";
}
Console.WriteLine(message);
var secret = ConfigurationHelper.GetSecret("SK:ServiceApiKey", "705078df-8a7d-41c8-b13a-d9f26020eff8");
Main Types
The main types provided by this library are:
Infrastructure.Shared.Services.JsonSerializationService
Infrastructure.Shared.Helpers.ConstantsHelper
Infrastructure.Shared.Helpers.ConfigurationHelper
Infrastructure.Shared.Models.PageOptionsModel
Feedback & Contributing
Infrastructure.Shared is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
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. 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. |
-
net9.0
- Microsoft.Extensions.Configuration (>= 9.0.7)
- Microsoft.Extensions.Configuration.UserSecrets (>= 9.0.7)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Infrastructure.Shared:
Package | Downloads |
---|---|
Infrastructure.Networks
The package is designed to use services, assistants, models, and other components related to network technologies. It includes tools for creating an Http-client, asynchronous execution POST-method, and auxiliary classes for performing routine tasks. This package simplifies development by allowing developers to focus on business logic rather than technical details. In the future, it is planned to add additional general-purpose classes and interfaces to enhance functionality. |
|
Infrastructure.EntityFramework
The package is designed to use services, assistants, models, and other components related to network technologies. It includes tools for creating an Http-client, asynchronous execution POST-method, and auxiliary classes for performing routine tasks. This package simplifies development by allowing developers to focus on business logic rather than technical details. In the future, it is planned to add additional general-purpose classes and interfaces to enhance functionality. |
GitHub repositories
This package is not used by any popular GitHub repositories.