Fix db access

- Add NuGet properties
- Update RethinkDB F# driver
This commit is contained in:
2022-04-19 14:05:48 -04:00
parent 21ef9bac02
commit 26d7c9b140
3 changed files with 43 additions and 38 deletions

View File

@@ -9,12 +9,12 @@ open System
type IServiceCollection with
member this.AddDistributedRethinkDBCache(options : Action<DistributedRethinkDBCacheOptions>) =
match options with null -> nullArg "options" | _ -> ()
ignore <| this.AddOptions ()
ignore <| this.Configure options
ignore <| this.Add (ServiceDescriptor.Transient<IDistributedCache, DistributedRethinkDBCache>())
this
member this.AddDistributedRethinkDBCache (options : Action<DistributedRethinkDBCacheOptions>) =
if isNull options then nullArg "options"
this.AddOptions () |> ignore
this.Configure options |> ignore
this.Add (ServiceDescriptor.Transient<IDistributedCache, DistributedRethinkDBCache> ())
this
/// <summary>
/// Add RethinkDB options to the services collection
@@ -23,4 +23,4 @@ type IServiceCollection with
/// <returns>The given <see cref="IServiceCollection" /> for further manipulation</returns>
[<System.Runtime.CompilerServices.Extension>]
let AddDistributedRethinkDBCache (this : IServiceCollection, options : Action<DistributedRethinkDBCacheOptions>) =
this.AddDistributedRethinkDBCache options
this.AddDistributedRethinkDBCache options