My problem is exactly described in the question below, but has no accepted, or helpful answer.
Most answers mention Office 365, which might work, but I am looking at a 2013 setup.
I'm running on SP Server 2013 and trying to do some workflow operations through CSOM but I keep getting null at the GetWorkflowDeploymentService call
WorkflowDeploymentService workflowDeploymentService = workflowServicesManager.GetWorkflowDeploymentService();
Unhandled Exception: Microsoft.SharePoint.Client.ServerException: Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. "GetWorkflowDeploymentService new Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager() "