IT.Web.Common.Abstractions
1.1.0
dotnet add package IT.Web.Common.Abstractions --version 1.1.0
NuGet\Install-Package IT.Web.Common.Abstractions -Version 1.1.0
<PackageReference Include="IT.Web.Common.Abstractions" Version="1.1.0" />
<PackageVersion Include="IT.Web.Common.Abstractions" Version="1.1.0" />
<PackageReference Include="IT.Web.Common.Abstractions" />
paket add IT.Web.Common.Abstractions --version 1.1.0
#r "nuget: IT.Web.Common.Abstractions, 1.1.0"
#:package IT.Web.Common.Abstractions@1.1.0
#addin nuget:?package=IT.Web.Common.Abstractions&version=1.1.0
#tool nuget:?package=IT.Web.Common.Abstractions&version=1.1.0
IT.Web.Common
A collection of usefull tools for web applications.
1. Getting Started
1.1 Using DI
- Add the IT.Web.Common NuGet package to your ASP.NET Core 6 web project.
- Register the default services to the service collection
services.AddItWebCommonServices();
- That's it! Just use dependecy injection as you whould using the interfaces e.g.
var typeFinder = _host.Services.GetService<ITypeFinder>(); Type[] types = typeFinder.FindClassesOfType<MyClass>().ToArray();
1.1 Manualy
You can just add the IT.Web.Common.Abstractions NuGet package to your ASP.NET Core 6 web project and create your own implementations of the
ITypeFinder
and theIWebAppFileProvider
.Register your implementations to the service collection. Even though the
TryAddSingleton<>()
method is used be sure to NOT callAddItWebCommonServices()
if you reference theIT.Web.Common
package, unless you know what you're doing.services.TryAddSingleton<IWebAppFileProvider, MyWebAppFileProvider>(); services.TryAddSingleton<ITypeFinder, MyTypeFinder>();
That's it! Just use dependecy injection as you whould using the interfaces e.g.
var typeFinder = _host.Services.GetService<ITypeFinder>(); Type[] types = typeFinder.FindClassesOfType<MyClass>().ToArray();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.FileProviders.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on IT.Web.Common.Abstractions:
Package | Downloads |
---|---|
IT.Web.Common
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.