public void Start() { if (!IsWorking) { lock (StartLock) { if (!IsWorking) { BrokerInst.Start(); GetMessages(); BrokerInst.OnNotificationSucceeded += BrokerInstOnOnNotificationSucceeded; BrokerInst.OnNotificationFailed += BrokerInstOnOnNotificationFailed; } } } }