public static void Loader(MyPhonePlugins.IMyPhoneCallHandler callHandler) { lock (lockObj) { instance = new CallTriggerCmdPlugin(callHandler); instance.StartServiceAsync(); instance.GetRecordsList(); } }
public static void Unloader() { lock (lockObj) { if (instance != null) { instance.Dispose(); instance = null; } } }