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
+29-16Lines changed: 29 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -6,25 +6,25 @@ 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)>]
@@ -33,10 +33,8 @@ type SingleRootTypeProvider(config: TypeProviderConfig, providerName, parameters
33
33
then
34
34
letm= cache.CreateCacheEntryChangeMonitor [ key ]
35
35
m.NotifyOnChanged(fun _ ->
36
-
ifnot disposingCache
37
-
then
38
-
disposeCache()
39
-
this.Invalidate()
36
+
x.ClearCache()
37
+
invalidate()
40
38
)
41
39
changeMonitors.Add(m)
42
40
value
@@ -45,6 +43,21 @@ type SingleRootTypeProvider(config: TypeProviderConfig, providerName, parameters
45
43
46
44
cacheItem.Value
47
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