Пример #1
0
        /// <summary>
        /// Saveds the state.
        /// </summary>
        public async Task SavedState()
        {
            var storable = new ApplicationStateStorable()
            {
                //Key = ApplicationStateHandler.MatchId.ToString(),
            };

            storable.Apply(ApplicationStateHandler);

            await Storage.InsertObject(storable);
        }
Пример #2
0
        /// <summary>
        /// Saveds the state.
        /// </summary>
        public async Task SavedState()
        {
            NotifyStatusUpdate();

            var storable = new ApplicationStateStorable()
            {
                //Key = MatchId.ToString(),
            };

            storable.Apply(this);

            await _storage.InsertObject(storable);
        }
Пример #3
0
 /// <summary>
 /// Apply the specified storable.
 /// </summary>
 /// <param name="storable">Storable.</param>
 public void Apply(ApplicationStateStorable storable)
 {
     SavedState().ConfigureAwait(false);
 }