internal void AddSecurityBreach(SecurityBreach breach, string data)
 {
     try
     {
         if (this.mSecurityBreachesList.ContainsKey(breach))
         {
             return;
         }
         this.mSecurityBreachesList.Add(breach, data);
         Logger.Info("Security breach added for: {0}", (object)breach);
     }
     catch (Exception ex)
     {
         Logger.Error("Exception in adding security breach: {0}", (object)ex.ToString());
     }
 }
Exemplo n.º 2
0
 public static async Task <bool> NotifySecurityBreach(this RestClient client, SecurityBreach securityBreach)
 {
     return(await client.Put <SecurityBreach, bool>("api/Reporting/NotifySecurityBreach", securityBreach));
 }