예제 #1
0
 public CrdtActor(string serviceId, string crdtId, IActorRef eventLog)
 {
     Id          = serviceId + "_" + crdtId;
     EventLog    = eventLog;
     this.crdtId = crdtId;
     this.crdt   = default(TOperations).Zero;
 }
예제 #2
0
 public PureCrdtActor(string serviceId, string crdtId, IActorRef eventLog, StabilitySettings stabilitySettings = null)
 {
     Id                     = serviceId + "_" + crdtId;
     AggregateId            = typeof(TCrdt).Name + "_" + crdt;
     EventLog               = eventLog;
     this.stabilitySettings = stabilitySettings;
     this.crdtId            = crdtId;
     this.crdt              = default(TOperations).Zero;
     this.rtm               = !(stabilitySettings is null) ? new Rtm(stabilitySettings) : default;