Skip to content

Commit

Permalink
Fix PartnerServiceFactory initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
nozzlegear committed Jan 4, 2025
1 parent 8a572b7 commit 305f4c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static IServiceCollection AddShopifySharpServiceFactories(this IServiceCo
: new ServiceDescriptor(serviceType, type, lifetime));
}

services.TryAdd(new ServiceDescriptor(typeof(IPartnerServiceFactory), typeof(PartnerServiceFactory), lifetime));
services.TryAdd(new ServiceDescriptor(typeof(IPartnerServiceFactory), (sp) => new PartnerServiceFactory(sp), lifetime));

return services;
}
Expand Down

0 comments on commit 305f4c9

Please sign in to comment.