When I'm using the ResourceManagerHelper and initialize it in the following way
ResourceManagerHelper helper = new ResourceManagerHelper();
And then call a method
helper.GetEligibleResources(...)
Then I get a NullReferenceException. I also encountered something similar for profilemanager, servicemanager, and other managers... What am I doing wrong?
The SRM (and other) helpers require a callback to DataMiner. This can be added like this:
helper = new ResourceManagerHelper();
helper.RequestResponseEvent += (s, e) => e.responseMessage = engine.SendSLNetSingleResponseMessage(e.requestMessage);