public static IChangeToken CreateChangeTokenForKey(string key) { if (key is null) { throw new ArgumentNullException(nameof(key)); } return(new CompositeChangeToken(new[] { CreateChangeToken(), CacheCancellableTokensRegistry.CreateChangeToken(GenerateRegionTokenKey(key)) })); }
public static IChangeToken CreateChangeToken() { return(CacheCancellableTokensRegistry.CreateChangeToken(GenerateRegionTokenKey())); }