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