/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
- using System;
- namespace LinFu.IoC.Interfaces
- {
- /// <summary>
- /// Represents the results returned when a service request
- /// is made against an <see cref="IServiceContainer" /> instance.
- /// </summary>
- public interface IServiceRequestResult
- {
- /// <summary>
- /// The name of the service being created. By default, this property is blank.
- /// </summary>
- string ServiceName { get; }
- /// <summary>
- /// The type of service being requested.
- /// </summary>
- Type ServiceType { get; }
- /// <summary>
- /// The raw object reference created by the container itself.
- /// </summary>
- object OriginalResult { get; }
- /// <summary>
- /// The result that will be returned from the container
- /// instead of the <see cref="OriginalResult" />.
- /// If this property is null, then the original result will be used.
- /// </summary>
- object ActualResult { get; set; }
- /// <summary>
- /// The container that will handle the service request.
- /// </summary>
- IServiceContainer Container { get; }
- /// <summary>
- /// Gets the value indicating the additional arguments that
- /// were used during the service request.
- /// </summary>
- object[] AdditionalArguments { get; }
- }
- }