PageRenderTime 115ms CodeModel.GetById 60ms app.highlight 8ms RepoModel.GetById 43ms app.codeStats 0ms

/src/LinFu.IoC/ServiceRequestResult.cs

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