コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExportServiceAttribute"/> class.
 /// </summary>
 public ExportServiceAttribute(
     ServiceLifetimeScope serviceLifetimeScope, [CanBeNull] object keyed, [NotNull] params Type[] registerSpecifiedTypes)
 {
     this.ServiceLifetimeScope = serviceLifetimeScope;
     this.Keyed = keyed;
     this.RegisterSpecifiedTypes = registerSpecifiedTypes;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExportServiceAttribute"/> class.
 /// </summary>
 /// <param name="serviceLifetimeScope">
 /// The service lifetime scope.
 /// </param>
 /// <param name="named">
 /// The named.
 /// </param>
 /// <param name="registerSpecifiedTypes">
 /// The register Specified Types.
 /// </param>
 public ExportServiceAttribute(
     ServiceLifetimeScope serviceLifetimeScope, [CanBeNull] string named, [NotNull] params Type[] registerSpecifiedTypes)
 {
     this.Named = named;
     this.ServiceLifetimeScope   = serviceLifetimeScope;
     this.RegisterSpecifiedTypes = registerSpecifiedTypes;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExportServiceAttribute"/> class.
 /// </summary>
 /// <param name="serviceLifetimeScope">
 /// The service lifetime scope.
 /// </param>
 /// <param name="named">
 /// The named.
 /// </param>
 /// <param name="registerSpecifiedTypes">
 /// The register Specified Types.
 /// </param>
 public ExportServiceAttribute(
   ServiceLifetimeScope serviceLifetimeScope, [CanBeNull] string named, [NotNull] params Type[] registerSpecifiedTypes)
 {
     this.Named = named;
     this.ServiceLifetimeScope = serviceLifetimeScope;
     this.RegisterSpecifiedTypes = registerSpecifiedTypes;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExportServiceAttribute"/> class.
 /// </summary>
 /// <param name="serviceLifetimeScope">
 /// The service lifetime scope.
 /// </param>
 public ExportServiceAttribute(ServiceLifetimeScope serviceLifetimeScope)
     : this(serviceLifetimeScope, null)
 {
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExportServiceAttribute"/> class.
 /// </summary>
 public ExportServiceAttribute(
   ServiceLifetimeScope serviceLifetimeScope, [CanBeNull] object keyed, [NotNull] params Type[] registerSpecifiedTypes)
 {
     this.ServiceLifetimeScope = serviceLifetimeScope;
     this.Keyed = keyed;
     this.RegisterSpecifiedTypes = registerSpecifiedTypes;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExportServiceAttribute"/> class.
 /// </summary>
 /// <param name="serviceLifetimeScope">
 /// The service lifetime scope.
 /// </param>
 public ExportServiceAttribute(ServiceLifetimeScope serviceLifetimeScope)
     : this(serviceLifetimeScope, null)
 {
 }