I need to call this function, from a C# lib:
public BinanceRestClient(Action<BinanceRestOptions> optionsDelegate)
: this((HttpClient) null, (ILoggerFactory) null, optionsDelegate)
{
}
How can I call it from F# and pass a BinanceRestOptions object?
>Solution :
Pass it an anonymous function, for example:
let bc = BinanceRestClient(fun opts -> ())
or
let bc = BinanceRestClient(fun opts ->
opts.SomeProp <- 1
opts.SomeOtherProp <- "" )