// use the factory to create an instance of this type private ActivityIdHelper(GetCurrentDelegate getCurrentDel, SetAndDestroyDelegate setAndDestroyDel, SetAndPreserveDelegate setAndPreserveDel) { _getCurrentDel = getCurrentDel; _setAndDestroyDel = setAndDestroyDel; _setAndPreserveDel = setAndPreserveDel; }
public IntPtr GetCurrent() { if (_getCurrent == null) _getCurrent = Manager.Memory.RegisterDelegate<GetCurrentDelegate>(Pointers.ClientServices.GetCurrent.ToPointer()); return _getCurrent(); }