Exemple #1
0
        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;
                }
            }));
        }
Exemple #2
0
        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);
 }
Exemple #4
0
 static RepositoryEngine()
 {
     DistributedServices = new DistributedServices();
     SampleRepository    = new SampleRepository();
 }
Exemple #5
0
 public void RegisterDistributed(IDistributedServices distributedServices)
 {
     _distributedServices = distributedServices;
 }