/// <summary></summary> public Task <object> GetAsync(object key, CancellationToken cancellationToken) { try { GetCalls.Add(key); return(Task.FromResult <object>(_hashtable[key])); } catch (Exception ex) { return(Task.FromException <object>(ex)); } }
/// <summary></summary> public object Get(object key) { GetCalls.Add(key); return(_hashtable[key]); }