Пример #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;