public void offline() { Assert.IsFalse(firebase.offline()); firebase.Offline = true; Assert.IsTrue(firebase.offline()); firebase.Offline = false; Assert.IsFalse(firebase.offline()); firebase = null; Assert.IsTrue(firebase.offline()); }
public static API_Firebase submitThread_HandleQueue(this API_Firebase firebase) { var next = firebase.next(); while (next.notNull()) { // "[SubmitThread] got next: {0}".info(next); if (firebase.offline() || firebase.site_Configured().isFalse()) { firebase.offlineQueue().add(next); } else { ThreadPool.QueueUserWorkItem((o) => firebase.submit_Via_REST(next)); } next = firebase.next(); } return(firebase); }