コード例 #1
0
        private ChangingEventArgs RaiseOnChangingSync(string key, object data)
        {
            var e = new ChangingEventArgs
            {
                Key      = key,
                OldValue = ((ISyncSessionStorageService)this).GetItem <object>(key),
                NewValue = data
            };

            Changing?.Invoke(this, e);

            return(e);
        }
コード例 #2
0
        private async Task <ChangingEventArgs> RaiseOnChangingAsync(string key, object data)
        {
            var e = new ChangingEventArgs
            {
                Key      = key,
                OldValue = await GetItemAsync <object>(key),
                NewValue = data
            };

            Changing?.Invoke(this, e);

            return(e);
        }