示例#1
0
        protected void NotifyOnRevokeOnce(string key, object @this, IRevokeKey revokeKey)
        {
            var newContext = new RevokeContext(@this, revokeKey, TaskScheduler.Current);

            _revokeIndexer.AddRevokeContext(key, newContext);
        }
示例#2
0
        protected void NotifyOnRevokeOnce(string key, object @this, Func <string, Task> callback)
        {
            var newContext = new RevokeContext(@this, callback, TaskScheduler.Current);

            _revokeIndexer.AddRevokeContext(key, newContext);
        }