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?
Hi Pieter-Jan,
You need to call the RequestResponseEvent as part of the initiation of the helper as shown below for in an Automation Script
ResourceManagerHelper RmHelper = new ResourceManagerHelper();
RmHelper.RequestResponseEvent += (sender, e) => e.responseMessage = Engine.SLNet.SendSingleResponseMessage(e.requestMessage);