예제 #1
0
        public bool IsTracked(Guid id)
        {
#if NET461
            return(_cache.Contains(id.ToString()));
#else
            return(_cache.TryGetValue(id, out var o) && o != null);
#endif
        }
        public Task <bool> IsTracked(Guid id)
        {
#if NET452
            return(Task.FromResult(_cache.Contains(id.ToString())));
#else
            return(Task.FromResult(_cache.TryGetValue(id, out var o) && o != null));
#endif
        }
예제 #3
0
        public Task <bool> IsTracked(string id)
        {
#if NET452
            return(Task.FromResult(_cache.Contains(id)));
#else
            return(Task.FromResult(_cache.TryGetValue(id, out var o)));
#endif
        }
        public bool IsTracked(string id)
        {
            object o;

#if NET451
            return(_cache.Contains(id));
#else
            return(_cache.TryGetValue(id, out o));
#endif
        }