PageRenderTime 400ms CodeModel.GetById 329ms app.highlight 3ms RepoModel.GetById 65ms app.codeStats 0ms

/src/LinFu.IoC.Common/IFactory.cs

http://github.com/philiplaureano/LinFu
C# | 15 lines | 7 code | 0 blank | 8 comment | 0 complexity | 9097a96c1854a8d08c17c40f11493b91 MD5 | raw file
 1namespace LinFu.IoC.Interfaces
 2{
 3    /// <summary>
 4    ///     Allows an object to create its own service instances.
 5    /// </summary>
 6    public interface IFactory
 7    {
 8        /// <summary>
 9        ///     Creates a service instance using the given <see cref="IFactoryRequest" /> instance.
10        /// </summary>
11        /// <param name="request">The <see cref="IFactoryRequest" /> instance that describes the requested service.</param>
12        /// <returns>An object instance that represents the service to be created. This cannot be <c>null</c>.</returns>
13        object CreateInstance(IFactoryRequest request);
14    }
15}