HMIS.Base.ServiceLocator 1.0.5
HMIS.Base.ServiceLocator
A Package for Service Locator for the HMIS sln that will be used in all the Modules.
Installation
Add Internal NuGet Package Source with the next steps:
- Open Visual Studio.
- Go to
Tools>Options. - Select
NuGet Package Manager>Package Sources. - Click the
+button to add a new package source. - Set the
Nameto e.g.HMISand theSourcetohttps://baget.ahbsdev.com/v3/index.json. - After that, click
OKto save the changes. - Then, you can install the package via the .NET CLI:
dotnet add package HMIS.Base.ServiceLocator --source https://baget.ahbsdev.com/v3/index.json
Or via the NuGet Package Manager:
- Open the NuGet Package Manager in Visual Studio.
- Package Manager Console:
Install-Package HMIS.Base.ServiceLocator -Source https://baget.ahbsdev.com/v3/index.json
Or via the NuGet Package Manager UI:
- Open the NuGet Package Manager in Visual Studio.
- Select the
HMISpackage source from the dropdown. - Search for
HMIS.Base.ServiceLocator. - Click
Installto add the package to your project.
Program.cs
builder.Services.RegisterServiceLocator(builder.Configuration);
appsettings.json
"ConnectionStrings": {
"ServiceLocatorEntity": "Server=10.24.105.156;Database=HCMS.Main;User Id=semilive;Password=semilive;Persist Security Info=True;MultipleActiveResultSets=True;TrustServerCertificate=True;Application Name=EntityFramework"
}
No packages depend on HMIS.Base.ServiceLocator.
.NET 9.0
- HMIS.Base.Models (>= 1.0.1)
- HMIS.Base.Repository (>= 1.0.3)
- HMIS.Base.SL.DAL (>= 1.0.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Mvc.Abstractions (>= 2.3.0)
- Microsoft.AspNetCore.Mvc.Core (>= 2.3.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.8)
- Microsoft.IdentityModel.Tokens (>= 8.13.1)
- Newtonsoft.Json (>= 13.0.3)
- System.IdentityModel.Tokens.Jwt (>= 8.13.1)