IGet 1.0.0
See the version list below for details.
dotnet add package IGet --version 1.0.0
NuGet\Install-Package IGet -Version 1.0.0
<PackageReference Include="IGet" Version="1.0.0" />
paket add IGet --version 1.0.0
#r "nuget: IGet, 1.0.0"
// Install IGet as a Cake Addin #addin nuget:?package=IGet&version=1.0.0 // Install IGet as a Cake Tool #tool nuget:?package=IGet&version=1.0.0
IGet
Say goodbye to MediatR's IRequest-IRequestHandler combination and use IGet instead: less code, more freedom.
serviceCollection.AddIGet();
Using IGet
MediatR requires declarations like this:
public class MyRequest : IRequest<MyResult>
{
public int Id { get; set; }
}
public class MyHandler : IRequestHandler<MyRequest, MyResult>
{
private ILogger<MyHandler> _logger;
public MyHandler(ILogger<MyHandler> logger)
{
_logger = logger;
}
public async Task<MyResult> Handle(MyRequest request, CancellationToken cancellationToken)
{
// do something
}
}
IGet allows you to use the simplest possible declaration:
public class MyHandler
{
private ILogger<MyHandler> _logger;
public MyHandler(ILogger<MyHandler> logger)
{
_logger = logger;
}
public MyResult AnyRandomSignature(int id)
{
// do something
}
}
With MediatR you don't have compile time checks that a handler exists:
var result = await _mediator.Send(new MyRequestWithoutHandler { Id = 1 })
With IGet you have immediate verification that the handler exists in scope:
var result = get.Get<MyHandler>().AnyRandomSignature(1);
Can IGet and MediatR be used together?
Yes. There is no need to replace old code.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
NuGet packages (1)
Showing the top 1 NuGet packages that depend on IGet:
Package | Downloads |
---|---|
IGet.GetAll
Extends IGet. Get an IEnumerable of class instances (with their dependencies injected) via i.GetAll<IMyInterface>() or i.GetAll<MyBaseClass>(). Additional setup: serviceCollection.AddIGetAll(new [] { typeof(Startup).Assembly, ... }). See the readme for many examples. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.8 | 17,042 | 12/13/2023 |
1.1.7 | 132 | 12/13/2023 |
1.1.6 | 5,160 | 4/12/2023 |
1.1.5 | 969 | 3/29/2023 |
1.1.4 | 296 | 3/21/2023 |
1.1.3 | 296 | 3/20/2023 |
1.1.2 | 189 | 3/19/2023 |
1.1.1 | 325 | 3/16/2023 |
1.1.0 | 199 | 3/15/2023 |
1.0.14 | 197 | 3/15/2023 |
1.0.13 | 208 | 3/14/2023 |
1.0.12 | 206 | 3/14/2023 |
1.0.11 | 209 | 3/14/2023 |
1.0.10 | 207 | 3/14/2023 |
1.0.9 | 211 | 3/13/2023 |
1.0.8 | 214 | 3/13/2023 |
1.0.7 | 204 | 3/13/2023 |
1.0.6 | 193 | 3/13/2023 |
1.0.5 | 204 | 3/12/2023 |
1.0.4 | 221 | 3/12/2023 |
1.0.3 | 194 | 3/11/2023 |
1.0.2 | 210 | 3/10/2023 |
1.0.1 | 226 | 3/10/2023 |
1.0.0 | 226 | 3/10/2023 |
1.0.0-alpha | 146 | 3/10/2023 |