serilog-contrib / serilog-sinks-slackclient

Slack Sink for Serilog
Apache License 2.0
27 stars 15 forks source link

Not possible afaik to set proxy #11

Open fmj opened 6 years ago

fmj commented 6 years ago

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?

marcio-azevedo commented 6 years ago

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