20 references to Create
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.cs (1)
217
var state = new StampedeState<T, T>(this, new StampedeKey(key, flags), TagSet.
Create
(tags), token);
Internal\DefaultHybridCache.Stampede.cs (1)
31
stampedeState = new StampedeState<TState, T>(this, stampedeKey, TagSet.
Create
(tags), canBeCanceled);
Microsoft.Extensions.Caching.Hybrid.Tests (18)
PayloadTests.cs (8)
45
? TagSet.Empty : TagSet.
Create
(delimitedTags.Split(','));
77
var tags = TagSet.
Create
(["some_tag"]);
111
var tags = TagSet.
Create
(["some_tag"]);
141
var tags = TagSet.
Create
(["some_tag"]);
177
var tags = TagSet.
Create
(["some_tag"]);
232
var tags = TagSet.
Create
(["some_tag"]);
259
var tags = TagSet.
Create
(["some_tag"]);
343
var writeTags = TagSet.
Create
(tagsArray);
TagSetTests.cs (10)
24
var tags = TagSet.
Create
([]);
35
var tags = TagSet.
Create
(Custom());
52
var tags = TagSet.
Create
(arr);
65
var tags = TagSet.
Create
(Custom());
83
var tags = TagSet.
Create
(arr);
98
var tags = TagSet.
Create
(Custom());
120
var tags = TagSet.
Create
(arr);
132
var tags = TagSet.
Create
(LongCustom());
143
var ex = Assert.Throws<ArgumentException>(() => TagSet.
Create
(["abc", "", "ghi"]));
151
var ex = Assert.Throws<ArgumentException>(() => TagSet.
Create
(["abc", "*", "ghi"]));