public override async Task OnActivateAsync() { this.myId = new Random().Next(); this.allReminders = new Dictionary <string, IGrainReminder>(); this.sequence = new Dictionary <string, long>(); this.period = ReminderTestGrain2.GetDefaultPeriod(this.logger); this.logger.Info("OnActivateAsync."); this.filePrefix = "gc" + this.GrainId.Key + "_"; await GetMissingReminders(); }
public override async Task OnActivateAsync() { myId = new Random().Next(); allReminders = new Dictionary <string, IGrainReminder>(); sequence = new Dictionary <string, long>(); logger = GetLogger(string.Format("ReminderCopyGrain {0}_{1}", myId, Identity)); period = ReminderTestGrain2.GetDefaultPeriod(logger); logger.Info("OnActivateAsync."); filePrefix = "gc" + Identity.PrimaryKey + "_"; await GetMissingReminders(); }
public override async Task OnActivateAsync() { myId = new Random().Next(); allReminders = new Dictionary <string, IGrainReminder>(); sequence = new Dictionary <string, long>(); logger = GetLogger(string.Format("ReminderCopyGrain {0}_{1}", myId, this.myId)); period = ReminderTestGrain2.GetDefaultPeriod(logger); logger.Info("OnActivateAsync."); filePrefix = "gc" + this.IdentityString + "_"; //*grn / 549BB267 / 4b7d05e0f95eff7cea95b210de1f338903000000549bb267 - 0xC1FA7939 await GetMissingReminders(); }