Exemple #1
0
        public void ResumeOperations()
        {
            var operation = new SofOperation {
                Type = OperationValue.ResumeOp
            };
            var data = operation.ToJson();
            var json = JObject.Parse(data);

            json["plugin"] = "rv";
            json["type"]   = OperationValue.ResumeOp;
            var stringJson = json.ToString();

            ProcessOperation(stringJson);
        }
        public void InitialDataSender()
        {
            var operation = new SofOperation();

            if (!(Settings.AgentId.Equals(String.Empty)))
            {
                operation.Api = ApiCalls.CoreStartUp();
                operation.Type = OperationValue.Startup;
            }
            else
            {
                operation.Type = OperationValue.NewAgent;
                operation.Api = ApiCalls.CoreNewAgent;
            }

            ProcessOperation(operation.ToJson());
        }
Exemple #3
0
        public void InitialDataSender()
        {
            var operation = new SofOperation();

            if (!(Settings.AgentId.Equals(String.Empty)))
            {
                operation.Api  = ApiCalls.CoreStartUp();
                operation.Type = OperationValue.Startup;
            }
            else
            {
                operation.Type = OperationValue.NewAgent;
                operation.Api  = ApiCalls.CoreNewAgent;
            }

            ProcessOperation(operation.ToJson());
        }
Exemple #4
0
        public void ResumeOperations()
        {
            try
            {
                var operation = new SofOperation {
                    Type = OperationValue.ResumeOp
                };
                var data = operation.ToJson();
                var json = JObject.Parse(data);
                json["plugin"] = "rv";
                json["type"]   = OperationValue.ResumeOp;
                var stringJson = json.ToString();

                ProcessOperation(stringJson);
            }
            catch
            {
                Logger.Log("Error while \"ResumingOperations\".", LogLevel.Error);
            }
        }
Exemple #5
0
        public void InitialDataSender()
        {
            var operation = new SofOperation();

            try
            {
                if (!(Settings.AgentId.Equals(String.Empty)))
                {
                    operation.Api  = ApiCalls.CoreStartUp();
                    operation.Type = OperationValue.Startup;
                }
                else
                {
                    operation.Type = OperationValue.NewAgent;
                    operation.Api  = ApiCalls.CoreNewAgent();
                }
            }
            catch
            {
                Logger.Log("Error while gathering Inititial Data for \"InititalDataSender\".", LogLevel.Error);
            }

            ProcessOperation(operation.ToJson());
        }
        public void ResumeOperations()
        {
            var operation = new SofOperation {Type = OperationValue.ResumeOp};
            var data = operation.ToJson();
            var json = JObject.Parse(data);
                json["plugin"] = "rv";
                json["type"] = OperationValue.ResumeOp;
            var stringJson = json.ToString();

            ProcessOperation(stringJson);
        }
        public void ResumeOperations()
        {
            try
            {
                var operation = new SofOperation {Type = OperationValue.ResumeOp};
                var data = operation.ToJson();
                var json = JObject.Parse(data);
                json["plugin"] = "rv";
                json["type"] = OperationValue.ResumeOp;
                var stringJson = json.ToString();

                ProcessOperation(stringJson);
            }
            catch
            {
                Logger.Log("Error while \"ResumingOperations\".", LogLevel.Error);
            }
        }
        public void InitialDataSender()
        {
            var operation = new SofOperation();

            try
            {
                if (!(Settings.AgentId.Equals(String.Empty)))
                {
                    operation.Api = ApiCalls.CoreStartUp();
                    operation.Type = OperationValue.Startup;
                }
                else
                {
                    operation.Type = OperationValue.NewAgent;
                    operation.Api = ApiCalls.CoreNewAgent;
                }
            }
            catch
            {
                Logger.Log("Error while gathering Inititial Data for \"InititalDataSender\".", LogLevel.Error);
            }

            ProcessOperation(operation.ToJson());
        }