@@ -9569,8 +9569,7 @@ public static ServiceDetails OfValue(object value) =>
9569
9569
/// <summary>Sets the service key as a detials of the service resolution.</summary>
9570
9570
[MethodImpl((MethodImplOptions)256)]
9571
9571
public static ServiceDetails OfServiceKey(object serviceKey) =>
9572
- new ServiceDetails(null, IfUnresolved.Throw, serviceKey, null, null, null,
9573
- hasCustomValue: false);
9572
+ new ServiceDetails(null, IfUnresolved.Throw, serviceKey, null, null, null, hasCustomValue: false);
9574
9573
9575
9574
/// <summary>Creates new details out of provided settings and not null `serviceKey`.</summary>
9576
9575
[MethodImpl((MethodImplOptions)256)]
@@ -9794,10 +9793,11 @@ public static object InheritInfoFromDependencyOwner(this Type serviceType,
9794
9793
if (serviceType == requiredServiceType)
9795
9794
requiredServiceType = null;
9796
9795
9797
- if (serviceKey == null & requiredServiceType == null & metadataKey == null & metadata == null & ifUnresolved == IfUnresolved.Throw)
9796
+ if (requiredServiceType == null & serviceKey == null & metadataKey == null & metadata == null & ifUnresolved == IfUnresolved.Throw)
9798
9797
return serviceType;
9799
9798
9800
- return ServiceInfo.Of(serviceType, ServiceDetails.Of(requiredServiceType, serviceKey, ifUnresolved, null, metadataKey, metadata));
9799
+ var details = new ServiceDetails(requiredServiceType, ifUnresolved, serviceKey, metadataKey, metadata, null, hasCustomValue: false);
9800
+ return ServiceInfo.Of(serviceType, details);
9801
9801
}
9802
9802
9803
9803
/// <summary>Returns required service type if it is specified and assignable to service type,
0 commit comments