/src/LinFu.IoC.Common/IFactoryRequest.cs
C# | 32 lines | 11 code | 4 blank | 17 comment | 0 complexity | cc28e1cd99160cfd068f229aed967369 MD5 | raw file
1using System; 2 3namespace LinFu.IoC.Interfaces 4{ 5 /// <summary> 6 /// Represents the parameters made to a <see cref="IFactory" /> instance during 7 /// a <see cref="IFactory.CreateInstance" /> method call. 8 /// </summary> 9 public interface IFactoryRequest 10 { 11 /// <summary> 12 /// Gets or sets the value indicating the service container that made the service request. 13 /// </summary> 14 IServiceContainer Container { get; set; } 15 16 /// <summary> 17 /// Gets the value indicating the service name. 18 /// </summary> 19 /// <remarks>A null service name indicates that no service name was given during the request.</remarks> 20 string ServiceName { get; } 21 22 /// <summary> 23 /// Gets the value indicating the requested service type. 24 /// </summary> 25 Type ServiceType { get; } 26 27 /// <summary> 28 /// Gets the value indicating the additional arguments given in the factory request. 29 /// </summary> 30 object[] Arguments { get; } 31 } 32}