mirror of
https://github.com/AlexMacocian/Slim.git
synced 2026-07-15 15:19:59 +00:00
Added license
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Macocian Alexandru Victor
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+12
-3
@@ -7,16 +7,25 @@
|
||||
<Company />
|
||||
<Product></Product>
|
||||
<Description>Service lifetime management and dependency injection framework.</Description>
|
||||
<AssemblyVersion>1.0.2.0</AssemblyVersion>
|
||||
<FileVersion>1.0.2.0</FileVersion>
|
||||
<AssemblyVersion>1.0.2.1</AssemblyVersion>
|
||||
<FileVersion>1.0.2.1</FileVersion>
|
||||
<PackageProjectUrl>https://github.com/AlexMacocian/Slim</PackageProjectUrl>
|
||||
<Version>1.2.0</Version>
|
||||
<Version>1.2.1</Version>
|
||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<DocumentationFile>C:\Users\Owner\source\repos\Slim\Slim\Slim.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\LICENSE">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
+168
-10
@@ -9,6 +9,17 @@
|
||||
Interface for <see cref="T:Slim.ServiceManager"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceManager.RegisterServiceManager">
|
||||
<summary>
|
||||
Register the current service manager as a valid dependency.
|
||||
</summary>
|
||||
<remarks>Same functionality as calling <see cref="M:Slim.IServiceProducer.RegisterSingleton(System.Type,System.Func{Slim.IServiceProvider,System.Object})" /> with current <see cref="T:Slim.IServiceManager"/>.</remarks>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceManager.BuildSingletons">
|
||||
<summary>
|
||||
Builds all registered singletons.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceManager.HandleException``1(System.Func{Slim.IServiceProvider,``0,System.Boolean})">
|
||||
<summary>
|
||||
Marks a type of exception to be caught and handled.
|
||||
@@ -31,13 +42,48 @@
|
||||
Interface allowing to produce services for the <see cref="T:Slim.ServiceManager"/>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterSingleton``1">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterSingleton``1(System.Func{Slim.IServiceProvider,``0})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<param name="serviceFactory">Factory for the implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterTransient``1">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Transient"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterTransient``1(System.Func{Slim.IServiceProvider,``0})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Transient"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<param name="serviceFactory">Factory for the implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterTransient``2">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Transient"/>.
|
||||
</summary>
|
||||
<typeparam name="TInterface">Type of interface.</typeparam>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterTransient``2(System.Func{Slim.IServiceProvider,``1})">
|
||||
@@ -56,7 +102,6 @@
|
||||
</summary>
|
||||
<typeparam name="TInterface">Type of interface.</typeparam>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterSingleton``2(System.Func{Slim.IServiceProvider,``1})">
|
||||
@@ -75,7 +120,6 @@
|
||||
</summary>
|
||||
<param name="tInterface">Type of interface.</param>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterTransient(System.Type,System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
@@ -94,10 +138,9 @@
|
||||
</summary>
|
||||
<param name="tInterface">Type of interface.</param>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterSingleton``2(System.Type,System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
<member name="M:Slim.IServiceProducer.RegisterSingleton(System.Type,System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
</summary>
|
||||
@@ -107,6 +150,42 @@
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterTransient(System.Type)">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Transient"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterTransient(System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Transient"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<param name="serviceFactory">Factory for implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterSingleton(System.Type)">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.IServiceProducer.RegisterSingleton(System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<param name="serviceFactory">Factory for implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="T:Slim.IServiceProvider">
|
||||
<summary>
|
||||
Interface allowing to request services from the <see cref="T:Slim.ServiceManager"/>.
|
||||
@@ -139,7 +218,6 @@
|
||||
</summary>
|
||||
<typeparam name="TInterface">Type of interface.</typeparam>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterTransient``2(System.Func{Slim.IServiceProvider,``1})">
|
||||
@@ -158,7 +236,6 @@
|
||||
</summary>
|
||||
<typeparam name="TInterface">Type of interface.</typeparam>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterSingleton``2(System.Func{Slim.IServiceProvider,``1})">
|
||||
@@ -177,7 +254,6 @@
|
||||
</summary>
|
||||
<param name="tInterface">Type of interface.</param>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterTransient(System.Type,System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
@@ -196,10 +272,9 @@
|
||||
</summary>
|
||||
<param name="tInterface">Type of interface.</param>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterSingleton``2(System.Type,System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
<member name="M:Slim.ServiceManager.RegisterSingleton(System.Type,System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
</summary>
|
||||
@@ -209,6 +284,84 @@
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterSingleton``1">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterSingleton``1(System.Func{Slim.IServiceProvider,``0})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<param name="serviceFactory">Factory for the implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterTransient``1">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Transient"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterTransient``1(System.Func{Slim.IServiceProvider,``0})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Transient"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<typeparam name="TClass">Type of implementation.</typeparam>
|
||||
<param name="serviceFactory">Factory for the implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterTransient(System.Type)">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Transient"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterTransient(System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Transient"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<param name="serviceFactory">Factory for implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterSingleton(System.Type)">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterSingleton(System.Type,System.Func{Slim.IServiceProvider,System.Object})">
|
||||
<summary>
|
||||
Register a service into <see cref="T:Slim.ServiceManager"/> with <see cref="F:Slim.Lifetime.Singleton"/>.
|
||||
Registers the service for all interfaces it implements.
|
||||
</summary>
|
||||
<param name="tClass">Type of implementation.</param>
|
||||
<param name="serviceFactory">Factory for implementation.</param>
|
||||
<exception cref="T:System.ArgumentNullException">Thrown when the provided serviceFactory is null.</exception>
|
||||
<exception cref="T:System.InvalidOperationException">Thrown when <see cref="T:Slim.ServiceManager"/> contains an entry for the provided interface type.</exception>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.RegisterServiceManager">
|
||||
<summary>
|
||||
Register the current service manager as a valid dependency.
|
||||
</summary>
|
||||
<remarks>Same functionality as calling <see cref="M:Slim.IServiceProducer.RegisterSingleton(System.Type,System.Func{Slim.IServiceProvider,System.Object})" /> with current <see cref="T:Slim.IServiceManager"/>.</remarks>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.GetService``1">
|
||||
<summary>
|
||||
Resolves and returns the required service.
|
||||
@@ -242,5 +395,10 @@
|
||||
Calls <see cref="M:System.IDisposable.Dispose"/> on all <see cref="T:System.IDisposable"/> singletons.
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:Slim.ServiceManager.BuildSingletons">
|
||||
<summary>
|
||||
Build all registered singletons.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
|
||||
Reference in New Issue
Block a user