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); }
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); }
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; }
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; }