public static void ConfigureMuzicStore(this CoreBuilder builder) { var services = builder.Services; builder.OnDaemonCreated((daemon, consumer, persistor) => { daemon.AddWorker(new Worker <Album>(consumer, persistor)); }); services.AddScoped <AlbumService>(); }
public AppBuilder(IServiceCollection services, Action <CoreBuilder> configure) { Services = services; Core = new CoreBuilder(Services); configure(Core); }