Mindscape.Raygun4Net.RaygunClient.FlagAsSent C# (CSharp) 메소드

FlagAsSent() 보호된 메소드

protected FlagAsSent ( Exception exception ) : void
exception System.Exception
리턴 void
    protected void FlagAsSent(Exception exception)
    {
      if (exception != null && exception.Data != null)
      {
        try
        {
          Type[] genericTypes = exception.Data.GetType().GetTypeInfo().GenericTypeArguments;
          if (genericTypes.Length == 0 || genericTypes[0].IsAssignableFrom(typeof(string)))
          {
            exception.Data[SentKey] = true;
          }
        }
        catch (Exception ex)
        {
          Debug.WriteLine(String.Format("Failed to flag exception as sent: {0}", ex.Message));
        }
      }
    }