public void RegisterDistributed(IDistributedServices distributedServices) { _distributedServices = distributedServices; distributedServices.SubscribeDataModel <SampleData>(((c, v) => { switch (v.EntityAction) { case EntityAction.Insert: Create(v.Data); break; case EntityAction.Update: break; case EntityAction.Delete: break; } })); }
public void RegisterDistributed(IDistributedServices distributedServices) { distributedServices.SubscribeEntity <Sample>((c, v) => { switch (v.EntityAction) { case EntityAction.Insert: Insert(v.Data); break; case EntityAction.Update: // break; case EntityAction.Delete: // break; } }); }
static ServicesEngine() { DistributedServices = new DistributedServices(); LangguageServices = new LangguageServices(); SampleDataServices = new SampleDataServices(LangguageServices); }
static RepositoryEngine() { DistributedServices = new DistributedServices(); SampleRepository = new SampleRepository(); }
public void RegisterDistributed(IDistributedServices distributedServices) { _distributedServices = distributedServices; }