Esempio n. 1
0
        public OrSetService(string serviceId, IActorRef eventLog, ActorSystem system, ICRDTServiceOperations <OrSet <T>, IImmutableSet <T> > operations = null)
        {
            this.serviceId  = serviceId;
            this.eventLog   = eventLog;
            this.operations = operations ?? OrSet <T> .Operations;

            Start(system);
        }
Esempio n. 2
0
        public CounterService(string serviceId, IActorRef eventLog, ActorSystem system, ICRDTServiceOperations <Counter, long> operations = null)
        {
            this.serviceId  = serviceId;
            this.eventLog   = eventLog;
            this.operations = operations ?? Counter.Operations;

            Start(system);
        }
Esempio n. 3
0
 private CRDTActor(CRDTService <TCrdt, TValue> service, string crdtId)
 {
     this.crdtId = crdtId;
     ops         = service.Operations;
     crdt        = ops.Default;
     eventLog    = service.EventLog;
     id          = service.ServiceId + "_" + crdtId;
     aggregateId = Uri.EscapeDataString(crdt.GetType().Name) + "_" + crdtId;
 }
Esempio n. 4
0
 public LastWriteWinsRegisterService(string serviceId, IActorRef eventLog, ActorSystem system, ICRDTServiceOperations <LastWriteWinsRegister <T>, T> operations = null)
 {
     this.serviceId  = serviceId;
     this.eventLog   = eventLog;
     this.operations = operations ?? LastWriteWinsRegister <T> .Operations;
 }