示例#1
0
        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>();
        }
示例#2
0
 public AppBuilder(IServiceCollection services, Action <CoreBuilder> configure)
 {
     Services = services;
     Core     = new CoreBuilder(Services);
     configure(Core);
 }