serilog-sinks-slackclient icon indicating copy to clipboard operation
serilog-sinks-slackclient copied to clipboard

Not possible afaik to set proxy

Open fmj opened this issue 7 years ago • 1 comments

It is not possible to add proxysettings when writing to slack. I see in the method:

let public SendMessageViaWebhooks (webhookUri:string, message:string) = Http.RequestString(webhookUri, headers = [ ContentType HttpContentTypes.Json ], body = TextRequest message)

it is not possible to add proxysetting, but it is possible by using Http.Request instead. Would it be possible to add a configuration options for the sink to be able to use webproxy?

fmj avatar Nov 30 '17 15:11 fmj

Hi @fmj,

I'm using FSharp Type Providers to build the Slack API client. Can you be more specific? (feel free to provide a C# example)

Regards, Márcio

marcio-azevedo avatar Apr 07 '18 16:04 marcio-azevedo