@@ -130,6 +130,7 @@ type IDependencyManagerProvider =
130130 abstract Key: string
131131 abstract HelpMessages: string []
132132 abstract ClearResultsCache: unit -> unit
133+
133134 abstract ResolveDependencies:
134135 scriptDir: string *
135136 mainScriptName: string *
@@ -141,7 +142,7 @@ type IDependencyManagerProvider =
141142 timeout: int ->
142143 IResolveDependenciesResult
143144
144- type ReflectionDependencyManagerProvider
145+ type ReflectionDependencyManagerProvider
145146 (
146147 theType: Type,
147148 nameProperty: PropertyInfo,
@@ -154,10 +155,10 @@ type IDependencyManagerProvider =
154155 clearResultCache: MethodInfo option,
155156 outputDir: string option,
156157 useResultsCache: bool
157- ) =
158+ ) =
158159
159160 let instance =
160- if not ( isNull ( theType.GetConstructor([| typeof< string option>; typeof< bool>|]))) then
161+ if not ( isNull ( theType.GetConstructor([| typeof< string option>; typeof< bool> |]))) then
161162 Activator.CreateInstance( theType, [| outputDir :> obj; useResultsCache :> obj |])
162163 else
163164 Activator.CreateInstance( theType, [| outputDir :> obj |])
@@ -173,11 +174,12 @@ type IDependencyManagerProvider =
173174 | None -> fun _ -> [||]
174175
175176 static member InstanceMaker ( theType : Type , outputDir : string option , useResultsCache : bool ) =
176- match getAttributeNamed theType dependencyManagerAttributeName,
177- getInstanceProperty< string> theType namePropertyName,
178- getInstanceProperty< string> theType keyPropertyName,
179- getInstanceProperty< string[]> theType helpMessagesPropertyName
180- with
177+ match
178+ getAttributeNamed theType dependencyManagerAttributeName,
179+ getInstanceProperty< string> theType namePropertyName,
180+ getInstanceProperty< string> theType keyPropertyName,
181+ getInstanceProperty< string[]> theType helpMessagesPropertyName
182+ with
181183 | None, _, _, _
182184 | _, None, _, _
183185 | _, _, None, _ -> None
@@ -232,9 +234,7 @@ type IDependencyManagerProvider =
232234 resolveDependenciesMethodName
233235
234236 let clearResultsCacheMethod =
235- getInstanceMethod< unit>
236- theType [||]
237- clearResultsCacheMethodName
237+ getInstanceMethod< unit> theType [||] clearResultsCacheMethodName
238238
239239 Some( fun () ->
240240 ReflectionDependencyManagerProvider(
@@ -303,9 +303,7 @@ type IDependencyManagerProvider =
303303 resolveDependenciesMethodName
304304
305305 let clearResultsCacheMethod =
306- getInstanceMethod< unit>
307- theType [||]
308- clearResultsCacheMethodName
306+ getInstanceMethod< unit> theType [||] clearResultsCacheMethodName
309307
310308 Some( fun () ->
311309 ReflectionDependencyManagerProvider(
@@ -400,10 +398,9 @@ type IDependencyManagerProvider =
400398 member _.Key = instance |> keyProperty
401399
402400 /// Clear the dependency manager caches
403- member _.ClearResultsCache () =
401+ member _.ClearResultsCache () =
404402 match clearResultCache with
405- | Some clearResultsCache ->
406- clearResultsCache.Invoke( instance, [||]) |> ignore
403+ | Some clearResultsCache -> clearResultsCache.Invoke( instance, [||]) |> ignore
407404 | None -> ()
408405
409406 /// Key of dependency Manager: used for #help
@@ -483,7 +480,13 @@ type IDependencyManagerProvider =
483480
484481/// Provides DependencyManagement functions.
485482/// Class is IDisposable
486- type DependencyProvider internal ( assemblyProbingPaths : AssemblyResolutionProbe option , nativeProbingRoots : NativeResolutionProbe option , useResultsCache : bool ) =
483+ type DependencyProvider
484+ internal
485+ (
486+ assemblyProbingPaths: AssemblyResolutionProbe option,
487+ nativeProbingRoots: NativeResolutionProbe option,
488+ useResultsCache: bool
489+ ) =
487490
488491 // Note: creating a NativeDllResolveHandler currently installs process-wide handlers
489492 let dllResolveHandler = new NativeDllResolveHandler( nativeProbingRoots)
@@ -557,11 +560,9 @@ type DependencyProvider internal (assemblyProbingPaths: AssemblyResolutionProbe
557560 new ( assemblyProbingPaths: AssemblyResolutionProbe, nativeProbingRoots: NativeResolutionProbe, useResultsCache) =
558561 new DependencyProvider( Some assemblyProbingPaths, Some nativeProbingRoots, useResultsCache)
559562
560- new ( nativeProbingRoots: NativeResolutionProbe, useResultsCache) =
561- new DependencyProvider( None, Some nativeProbingRoots, useResultsCache)
563+ new ( nativeProbingRoots: NativeResolutionProbe, useResultsCache) = new DependencyProvider( None, Some nativeProbingRoots, useResultsCache)
562564
563- new ( nativeProbingRoots: NativeResolutionProbe) =
564- new DependencyProvider( None, Some nativeProbingRoots, true )
565+ new ( nativeProbingRoots: NativeResolutionProbe) = new DependencyProvider( None, Some nativeProbingRoots, true )
565566
566567 new () = new DependencyProvider( None, None, true )
567568
0 commit comments