I am looking for a way to actually create a result source with C# CSOM. I only find examples where I specify an existing result source like this answer. I am developing a SharePoint provider hosted addin and I must create and configure a couple of search web parts with my CSOM code in a remote MVC application with an AppInstalled Event Receiver. I can't use any server code nor provision it. That is why I must do it with C# CSOM.
So does anyone know of a way to do this?