FeelJection 1.0.2
See the version list below for details.
dotnet add package FeelJection --version 1.0.2
NuGet\Install-Package FeelJection -Version 1.0.2
<PackageReference Include="FeelJection" Version="1.0.2" />
paket add FeelJection --version 1.0.2
#r "nuget: FeelJection, 1.0.2"
// Install FeelJection as a Cake Addin
#addin nuget:?package=FeelJection&version=1.0.2
// Install FeelJection as a Cake Tool
#tool nuget:?package=FeelJection&version=1.0.2
Looking for all concrete service that are marked with annotation Service. It fills a pool with any instances that can reuse in the application.
To use this library, you must perform following steps:
1) Mark the current concrete service.
example:
public interface IServiceA{
string GetName();
}
[Service]
public class ConcreteServiceA : IServiceA{
public string GetName(){
return "Antonio";
}
}
N.B. Only one interface service must be marked with the "Service" annotation
2) Start to search all concrete services
InjectManager.Search()
N.B. If you would create all instance of service, you will use this method InjectManager.Search(true)
N.B. Use this method one time in your application!
3) Inject your service in a property
public class ServiceController{
private IServiceA service = InjectManager.Inject<IServiceA>();
.....
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Beta version