You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BitFaster.Caching/Scoped.cs
+33-18Lines changed: 33 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,34 @@ public Scoped(T value)
25
25
this.refCount=newReferenceCount<T>(value);
26
26
}
27
27
28
+
/// <summary>
29
+
/// Attempts to create a lifetime for the scoped value. The lifetime guarantees the value is alive until
30
+
/// the lifetime is disposed.
31
+
/// </summary>
32
+
/// <param name="lifetime">When this method returns, contains the Lifetime that was created, or the default value of the type if the operation failed.</param>
33
+
/// <returns>true if the Lifetime was created; otherwise false.</returns>
0 commit comments