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: src/SqlClient/SingleRootTypeProvider.fs
+23-17Lines changed: 23 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,14 @@ open System.Runtime.Caching
6
6
openSystem
7
7
openSystem.Collections.Concurrent
8
8
9
-
[<AbstractClass>]
10
-
[<CompilerMessageAttribute("This API supports the FSharp.Data.SqlClient infrastructure and is not intended to be used directly from your code.",101, IsHidden =true)>]
@@ -38,10 +33,8 @@ type SingleRootTypeProvider(config: TypeProviderConfig, providerName, parameters
38
33
then
39
34
letm= cache.CreateCacheEntryChangeMonitor [ key ]
40
35
m.NotifyOnChanged(fun _ ->
41
-
ifnot clearingCache
42
-
then
43
-
clearCache()
44
-
this.Invalidate()
36
+
x.ClearCache()
37
+
invalidate()
45
38
)
46
39
changeMonitors.Add(m)
47
40
value
@@ -50,6 +43,21 @@ type SingleRootTypeProvider(config: TypeProviderConfig, providerName, parameters
50
43
51
44
cacheItem.Value
52
45
46
+
interface IDisposable with
47
+
memberx.Dispose()=
48
+
ifnot isDisposing then
49
+
isDisposing <-true
50
+
x.ClearCache()
51
+
cache.Dispose()
52
+
53
+
54
+
55
+
[<AbstractClass>]
56
+
[<CompilerMessageAttribute("This API supports the FSharp.Data.SqlClient infrastructure and is not intended to be used directly from your code.",101, IsHidden =true)>]
abstractCreateRootType: assemblyName:Assembly* nameSpace:string* typeName:string* args:obj[]->Lazy<ProvidedTypeDefinition>*obj[]// ChangeMonitor[] underneath but there is a problem https://github.com/fsprojects/FSharp.Data.SqlClient/issues/234#issuecomment-240694390
0 commit comments