PageRenderTime 27ms CodeModel.GetById 24ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1using LinFu.IoC.Factories;
 2
 3namespace LinFu.IoC.Configuration
 4{
 5    /// <summary>
 6    ///     Represents a fluent class that allows
 7    ///     users to create specific types of factories.
 8    /// </summary>
 9    /// <typeparam name="TService">The type of service being created.</typeparam>
10    public interface IGenerateFactory<TService>
11    {
12        /// <summary>
13        ///     Creates a singleton factory.
14        /// </summary>
15        /// <seealso cref="SingletonFactory{T}" />
16        void AsSingleton();
17
18        /// <summary>
19        ///     Creates a once per thread factory.
20        /// </summary>
21        /// <seealso cref="OncePerThreadFactory{T}" />
22        void OncePerThread();
23
24        /// <summary>
25        ///     Creates a once per request factory.
26        /// </summary>
27        /// <seealso cref="OncePerRequestFactory{T}" />
28        void OncePerRequest();
29    }
30}