Click or drag to resize

SendGridEvent Class

An event to be processed by OnProcessRequest(HttpContext). Correponds, generally, to the xot_email_event table. https://sendgrid.com/docs/API_Reference/Webhooks/event.html for more SendGrid documentation on Event Webhooks.
Inheritance Hierarchy
SystemObject
  NetQuarry.ServicesSendGridEvent

Namespace:  NetQuarry.Services
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class SendGridEvent

The SendGridEvent type exposes the following members.

Constructors
  NameDescription
Public methodSendGridEvent
Initializes a new instance of the SendGridEvent class
Top
Properties
  NameDescription
Public propertyattempt
The delivery attempt #.
Public propertycategory
The event category.
Public propertyemail
The email recipient.
Public propertyevent_name
The event name. One of:
SendGrid event nameCorresponding xot_email_event.event_type_id
processed1
delivered2
open3
deferred4
bounce5
spamreport6
dropped7
click8
unsubscribe9
unknown10
Public propertyevent_type
The event type packaged in a EventType class which includes the event_name and the event type number (converted from the inbound string).
EventCorresponding xot_email_event.event_type_idNote
processed1accepted/processed depending on service
delivered2
opened3
deferred4
bounced5
complained6
dropped7
clicked8
unsubscribed9
unknown10
rejected102
Public propertymessage_id
The unique xot_email_event.message_id, a Guid, originally provided in message_id.
Public propertyreason
The event reason.
Public propertyresponse
The event response.
Public propertysmtp_id
An id attached to the message by the platform.
Public propertystatus
The event status.
Public propertytimestamp
The event timestamp.
Public propertytype
The event subtype (e.g Bounce, Blocked, or Expired for bounce events).
Public propertyunique_args
The SendGrid "Unique Arguements" packaged in a UniqueArgs class.
Public propertyurl
The event URL.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodProcessEvent
Processes the event and inserts / updates it in xot_email_event table.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also