Exemplo n.º 1
0
        private async Task<bool> LogItemAsync(LogItem logItem)
        {
            LogDataContext logDataContext = new LogDataContext(logItem.LogType, _storageAccount);
            bool response = await logDataContext.LogActivity(logItem);

            return response;
        }
Exemplo n.º 2
0
 public async Task<List<LogByIPAddressTableEntity>> GetLogsByIPAddressAsync(string logType, string ipAddress, int amount)
 {
     LogDataContext logDataContext = new LogDataContext(logType, _storageAccount);
     return await logDataContext.GetLogsByIPTask(ipAddress, amount);
 }
Exemplo n.º 3
0
 public async Task<List<LogByActivityTableEntity>> GetLogsByActivityAsync(string logType, string activity, int amount)
 {
     LogDataContext logDataContext = new LogDataContext(logType, _storageAccount);
     return await logDataContext.GetLogsByActivityTask(activity, amount);
 }
Exemplo n.º 4
0
 public async Task<List<LogByUserTableEntity>> GetLogsByUserAsync(string logType, string userName, int amount)
 {
     LogDataContext logDataContext = new LogDataContext(logType, _storageAccount);
     return await logDataContext.GetLogsByUserTask(userName, amount);
 }