Пример #1
0
        public async Task <string> GetToken(string userName, DateTime startDateTime, DateTime endDateTime)
        {
            var requestLogInfo = await _applicationContext.GetContextModel();

            //machine???
            return(await _tokenClient.InsertToTokenAsync(userName, startDateTime, endDateTime, requestLogInfo.IpAddress, "", _settings.Value.ServerAddress));
        }
Пример #2
0
 public async Task <string> InsertToTokenAsync(string userName, DateTime startDateTime, DateTime endDateTime, string ipAddress, string machine,
                                               string macAddress)
 {
     return(await _tokenClient.InsertToTokenAsync(userName, startDateTime, endDateTime, ipAddress, machine,
                                                  macAddress));
 }