public MoniverseResponse Insert(MoniverseRequest request)
        {
            MoniverseResponse response = new MoniverseResponse()
            {
                TaskName = request.TaskName,
                TimeStamp = request.TimeStamp,
                Status = "Fail"
            };
            try
            {
                Logger.Instance.Info(String.Format("Insert Recieved - {0} - {1}", request.TaskName, request.TimeStamp));
                try
                {
                    DBManager.Instance.Insert(Datastore.Monitoring, request.Task);
                    Logger.Instance.Info(request.TaskName + " Success");
                }
                catch (Exception ex)
                {
                    _workStack.Execute(() => {
                        DBManager.Instance.Insert(Datastore.Monitoring, request.Task);
                        Logger.Instance.Info(request.TaskName + " Success");
                    });
                    Logger.Instance.Exception("Message: " + ex.Message + request.TaskName + " Error", ex.StackTrace);
                }
            }
            catch (Exception ex)
            {
                OperationContext.Current.Channel.Close();
                Logger.Instance.Exception(ex.Message, ex.StackTrace);
            }

            response.Status = "Success";
            Logger.Instance.Info(response.ToString());
            return response;
        }
 public MoniverseResponse RunRentention(MoniverseRequest request)
 {
     return new MoniverseResponse()
     {
         TaskName = "Retention",
         Status = "Success",
         TimeStamp = request.TimeStamp
     };
 }
 public MoniverseResponse QueueSize(MoniverseRequest request)
 {
     //_workStack.Execute(() =>
     //{
     //    Logger.Instance.Info(String.Format("Queue Size Request Recieved - {0} - {1}", request.TaskName, request.TimeStamp));
     //});
     MoniverseResponse response = new MoniverseResponse()
     {
         TaskName = "QUEUE SIZE",
         TimeStamp = request.TimeStamp,
         Status = "Success"
     };
     Logger.Instance.Info(response.ToString());
     return response;
 }