PageRenderTime 172ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1namespace LinFu.IoC.Interfaces
 2{
 3    /// <summary>
 4    ///     Represents a class that describes the context of a service request made to a service container.
 5    /// </summary>
 6    public interface IServiceRequest : IServiceInfo
 7    {
 8        /// <summary>
 9        ///     The container that will handle the service request.
10        /// </summary>
11        IServiceContainer Container { get; }
12
13        /// <summary>
14        ///     Gets or sets the value indicating the actual arguments that
15        ///     will be used for the service request.
16        /// </summary>
17        object[] ActualArguments { get; set; }
18
19        /// <summary>
20        ///     Gets the value indicating the original arguments that
21        ///     were given during the service request.
22        /// </summary>
23        object[] ProposedArguments { get; }
24
25        /// <summary>
26        ///     Gets the value indicating the original <see cref="IFactory" /> instance
27        ///     that will be used to handle the service request.
28        /// </summary>
29        IFactory ProposedFactory { get; }
30
31        /// <summary>
32        ///     Gets or sets the value indicating the actual <see cref="IFactory" /> instance
33        ///     that will be used to handle the service request.
34        /// </summary>
35        IFactory ActualFactory { get; set; }
36    }
37}