@@ -10,14 +10,16 @@ public ServiceRegistration(
1010 IEnumerable < string > serviceTypes ,
1111 string factory ,
1212 DuplicateStrategy duplicate ,
13- RegistrationStrategy registration )
13+ RegistrationStrategy registration ,
14+ IEnumerable < string > tags )
1415 {
1516 Lifetime = lifetime ;
1617 ImplementationType = implementationType ;
1718 ServiceTypes = new EquatableArray < string > ( serviceTypes ) ;
1819 Factory = factory ;
1920 Duplicate = duplicate ;
2021 Registration = registration ;
22+ Tags = new EquatableArray < string > ( tags ) ;
2123 }
2224
2325 public string Lifetime { get ; }
@@ -32,6 +34,8 @@ public ServiceRegistration(
3234
3335 public RegistrationStrategy Registration { get ; }
3436
37+ public EquatableArray < string > Tags { get ; }
38+
3539 public bool Equals ( ServiceRegistration other )
3640 {
3741 if ( ReferenceEquals ( null , other ) )
@@ -44,7 +48,8 @@ public bool Equals(ServiceRegistration other)
4448 && ServiceTypes . Equals ( other . ServiceTypes )
4549 && Factory == other . Factory
4650 && Duplicate == other . Duplicate
47- && Registration == other . Registration ;
51+ && Registration == other . Registration
52+ && Tags . Equals ( other . Tags ) ;
4853 }
4954
5055 public override bool Equals ( object obj )
@@ -61,7 +66,8 @@ public override int GetHashCode()
6166 ServiceTypes ,
6267 Factory ,
6368 Duplicate ,
64- Registration ) ;
69+ Registration ,
70+ Tags ) ;
6571 }
6672
6773 public static bool operator == ( ServiceRegistration left , ServiceRegistration right )
0 commit comments