PageRenderTime 223ms CodeModel.GetById 101ms app.highlight 1ms RepoModel.GetById 120ms app.codeStats 0ms

/src/LinFu.IoC.Common/IServiceRequestResult.cs

http://github.com/philiplaureano/LinFu
C# | 45 lines | 13 code | 7 blank | 25 comment | 0 complexity | 07be144de925e6c4eb32b6ddb33bd52e MD5 | raw file
 1using System;
 2
 3namespace LinFu.IoC.Interfaces
 4{
 5    /// <summary>
 6    ///     Represents the results returned when a service request
 7    ///     is made against an <see cref="IServiceContainer" /> instance.
 8    /// </summary>
 9    public interface IServiceRequestResult
10    {
11        /// <summary>
12        ///     The name of the service being created. By default, this property is blank.
13        /// </summary>
14        string ServiceName { get; }
15
16        /// <summary>
17        ///     The type of service being requested.
18        /// </summary>
19        Type ServiceType { get; }
20
21        /// <summary>
22        ///     The raw object reference created by the container itself.
23        /// </summary>
24        object OriginalResult { get; }
25
26        /// <summary>
27        ///     The result that will be returned from the container
28        ///     instead of the <see cref="OriginalResult" />.
29        ///     If this property is null, then the original result will be used.
30        /// </summary>
31        object ActualResult { get; set; }
32
33        /// <summary>
34        ///     The container that will handle the service request.
35        /// </summary>
36        IServiceContainer Container { get; }
37
38
39        /// <summary>
40        ///     Gets the value indicating the additional arguments that
41        ///     were used during the service request.
42        /// </summary>
43        object[] AdditionalArguments { get; }
44    }
45}