protected override async Task <bool> OnFirstStart() { items = new List <Item>() { new Item { Id = Guid.NewGuid().ToString(), Text = "First item", Description = "This is an item description." }, new Item { Id = Guid.NewGuid().ToString(), Text = "Second item", Description = "This is an item description." }, new Item { Id = Guid.NewGuid().ToString(), Text = "Third item", Description = "This is an item description." }, new Item { Id = Guid.NewGuid().ToString(), Text = "Fourth item", Description = "This is an item description." }, new Item { Id = Guid.NewGuid().ToString(), Text = "Fifth item", Description = "This is an item description." }, new Item { Id = Guid.NewGuid().ToString(), Text = "Sixth item", Description = "This is an item description." } }; _initialized = true; if (_normalOp) { myDataStore = this; } return(true); }
protected override void BecomingPrimary() { _normalOp = true; if (_initialized) { myDataStore = this; } }