I am trying to create a Service for some global variables that I need. The problem is that every time I try to get the data it is null.
Am I doing this right.
1. Create a class in the Foundation.Services directory. MyService
2. Added a property with get and set properties.
3. Injected the variable into the class that I want to use them
private GlobalService mGlobalService;
[InjectionMethod]
public void InjectController(GlobalService pGlobals)
{
mGlobalService = pGlobals;
}
Value is always null.
Edited by orcities - 05-Oct-2007 at 7:33am