/src/LinFu.IoC/Interfaces/IGetService.cs
http://github.com/philiplaureano/LinFu · C# · 16 lines · 7 code · 0 blank · 9 comment · 0 complexity · 530b830e224b20ee93218c77080fdf37 MD5 · raw file
- namespace LinFu.IoC.Interfaces
- {
- /// <summary>
- /// Represents a class that determines the behavior a <see cref="ServiceContainer" /> instance.
- /// </summary>
- public interface IGetService
- {
- /// <summary>
- /// Causes the container to instantiate the service using the given
- /// <paramref name="serviceRequest">service request</paramref>. If the service type cannot be created, it will simply
- /// return null.
- /// </summary>
- /// <returns>A valid object reference if the service can be created; otherwise, it will return <c>null</c></returns>
- object GetService(IServiceRequest serviceRequest);
- }
- }