public static IServiceCollection AddDaprServer(this IServiceCollection services, params Type[] hostedServices) { ServiceLoader.RegisterServices(hostedServices); return(services .AddTransient <ServiceLoader>() .AddTransient <DaprServer>()); }
public DaprServer(IServiceScopeFactory scopeFactory, ServiceLoader serviceLoader) { _serviceLoader = serviceLoader; }