public HttpResponseMessage Detach(IObservableService service) { //remove service from db _serviceRepository.RemoveService(service); return(new HttpResponseMessage(HttpStatusCode.Accepted)); }
public void AddService(IObservableService service) { using (IDocumentSession session = _store.OpenSession()) { session.Store(service); session.SaveChanges(); } }
private int _serviceTimeout = 15; //move to config public StatusHandler(IObservableService service) { _service = service; }
public void RemoveService(IObservableService service) { throw new NotImplementedException(); }