Exemple #1
0
        public void UpdateSession(decimal clientSessionId, string clientSessionServiceId)
        {
            var clientSessionIdParam = new TransmitterParam {
                Name = "clientSessionId", Type = typeof(decimal), Value = clientSessionId, IsOut = false
            };
            var clientSessionServiceIdParam = new TransmitterParam {
                Name = "clientSessionServiceId", Type = typeof(string), Value = clientSessionServiceId, IsOut = false
            };
            var telegram = new RepoQueryNoAnswerTelegramWrapper(typeof(ClientSession).Name, "UpdateSession",
                                                                new[] { clientSessionIdParam, clientSessionServiceIdParam });

            ProcessTelegramm(telegram);
        }
Exemple #2
0
        public void UpdateWorker(decimal clientSessionId, decimal?workerId)
        {
            var clientSessionIdParam = new TransmitterParam {
                Name = "clientSessionId", Type = typeof(decimal), Value = clientSessionId, IsOut = false
            };
            var workerIdParam = new TransmitterParam {
                Name = "workerId", Type = typeof(decimal?), Value = workerId, IsOut = false
            };
            var telegram = new RepoQueryNoAnswerTelegramWrapper(typeof(ClientSession).Name, "UpdateWorker",
                                                                new[] { clientSessionIdParam, workerIdParam });

            ProcessTelegramm(telegram);
        }
Exemple #3
0
        public void EndSession(decimal clientSessionId, bool clientSessionCorrectlyOff)
        {
            var clientSessionIdParam = new TransmitterParam {
                Name = "clientSessionId", Type = typeof(decimal), Value = clientSessionId, IsOut = false
            };
            var clientSessionCorrectlyOffParam = new TransmitterParam {
                Name = "clientSessionCorrectlyOff", Type = typeof(bool), Value = clientSessionCorrectlyOff, IsOut = false
            };
            var telegram = new RepoQueryNoAnswerTelegramWrapper(typeof(ClientSession).Name, "EndSession",
                                                                new[] { clientSessionIdParam, clientSessionCorrectlyOffParam });

            ProcessTelegramm(telegram);
        }