/src/LinFu.IoC/Configuration/Interfaces/IGenerateFactory.cs
http://github.com/philiplaureano/LinFu · C# · 30 lines · 10 code · 3 blank · 17 comment · 0 complexity · fee445766cbda582920ee3bc567e0862 MD5 · raw file
- using LinFu.IoC.Factories;
- namespace LinFu.IoC.Configuration
- {
- /// <summary>
- /// Represents a fluent class that allows
- /// users to create specific types of factories.
- /// </summary>
- /// <typeparam name="TService">The type of service being created.</typeparam>
- public interface IGenerateFactory<TService>
- {
- /// <summary>
- /// Creates a singleton factory.
- /// </summary>
- /// <seealso cref="SingletonFactory{T}" />
- void AsSingleton();
- /// <summary>
- /// Creates a once per thread factory.
- /// </summary>
- /// <seealso cref="OncePerThreadFactory{T}" />
- void OncePerThread();
- /// <summary>
- /// Creates a once per request factory.
- /// </summary>
- /// <seealso cref="OncePerRequestFactory{T}" />
- void OncePerRequest();
- }
- }