/src/LinFu.IoC.Common/IServiceRequest.cs
http://github.com/philiplaureano/LinFu · C# · 37 lines · 11 code · 4 blank · 22 comment · 0 complexity · 39850ef6824efb8f3a325c8ec4b96af8 MD5 · raw file
- namespace LinFu.IoC.Interfaces
- {
- /// <summary>
- /// Represents a class that describes the context of a service request made to a service container.
- /// </summary>
- public interface IServiceRequest : IServiceInfo
- {
- /// <summary>
- /// The container that will handle the service request.
- /// </summary>
- IServiceContainer Container { get; }
- /// <summary>
- /// Gets or sets the value indicating the actual arguments that
- /// will be used for the service request.
- /// </summary>
- object[] ActualArguments { get; set; }
- /// <summary>
- /// Gets the value indicating the original arguments that
- /// were given during the service request.
- /// </summary>
- object[] ProposedArguments { get; }
- /// <summary>
- /// Gets the value indicating the original <see cref="IFactory" /> instance
- /// that will be used to handle the service request.
- /// </summary>
- IFactory ProposedFactory { get; }
- /// <summary>
- /// Gets or sets the value indicating the actual <see cref="IFactory" /> instance
- /// that will be used to handle the service request.
- /// </summary>
- IFactory ActualFactory { get; set; }
- }
- }