public static AirbrakeCreateNoticeMessageBuilder WithSession(this AirbrakeCreateNoticeMessageBuilder builder, HttpContext context)
        {
            builder.With(m =>
            {
                var session = AirbrakeCreateNoticeMessageBuilderExtensions.TryGet(() => context.Session);
                if ((session == null) || !session.Keys.Any())
                {
                    return;
                }

                foreach (var key in session.Keys)
                {
                    if (key != null)
                    {
                        byte[] value;
                        if (session.TryGetValue(key, out value))
                        {
                            if (value != null)
                            {
                                var stringValue = Encoding.UTF8.GetString(value);
                                m.Session.Add(key, stringValue);
                            }
                        }
                    }
                }
            });
            return(builder);
        }
 public static AirbrakeCreateNoticeMessageBuilder WithFormParameters(this AirbrakeCreateNoticeMessageBuilder builder, HttpContext context)
 {
     builder.With(m =>
     {
         var form = AirbrakeCreateNoticeMessageBuilderExtensions.TryGet(() => context.Request.Form);
         if (form != null)
         {
             foreach (var item in form)
             {
                 m.Params.Add(item.Key, item.Value.ToString());
             }
         }
     });
     return(builder);
 }