/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
- namespace LinFu.IoC.Interfaces
- {
- /// <summary>
- /// Allows an object to create its own service instances.
- /// </summary>
- public interface IFactory
- {
- /// <summary>
- /// Creates a service instance using the given <see cref="IFactoryRequest" /> instance.
- /// </summary>
- /// <param name="request">The <see cref="IFactoryRequest" /> instance that describes the requested service.</param>
- /// <returns>An object instance that represents the service to be created. This cannot be <c>null</c>.</returns>
- object CreateInstance(IFactoryRequest request);
- }
- }