public HttpResponseMessage Detach(IObservableService service)
        {
            //remove service from db
            _serviceRepository.RemoveService(service);

            return(new HttpResponseMessage(HttpStatusCode.Accepted));
        }
Beispiel #2
0
 public void AddService(IObservableService service)
 {
     using (IDocumentSession session = _store.OpenSession())
     {
         session.Store(service);
         session.SaveChanges();
     }
 }
Beispiel #3
0
        private int _serviceTimeout = 15; //move to config

        public StatusHandler(IObservableService service)
        {
            _service = service;
        }
Beispiel #4
0
 public void RemoveService(IObservableService service)
 {
     throw new NotImplementedException();
 }