Exemplo n.º 1
0
 /// <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));
     }
 }
Exemplo n.º 2
0
 /// <summary></summary>
 public object Get(object key)
 {
     GetCalls.Add(key);
     return(_hashtable[key]);
 }