/// <summary>
        /// Automatically set the user identity (ie. email address, username, user id) on events.
        /// </summary>
        /// <param name="config">The configuration object</param>
        /// <param name="userInfo">The user's identity that the event happened to.</param>
        public static void SetUserIdentity(this ExceptionlessConfiguration config, UserInfo userInfo) {
            if (userInfo == null)
                return;

            config.DefaultData[Event.KnownDataKeys.UserInfo] = userInfo;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets the user's identity (ie. email address, username, user id) and name that the event happened to.
        /// </summary>
        /// <param name="ev">The event</param>
        /// <param name="userInfo">The user's identity that the event happened to.</param>
        public static void SetUserIdentity(this Event ev, UserInfo userInfo) {
            if (userInfo == null)
                return;

            ev.Data[Event.KnownDataKeys.UserInfo] = userInfo;
        }
 /// <summary>
 /// Sets the user's identity (ie. email address, username, user id) that the event happened to.
 /// </summary>
 /// <param name="builder">The event builder object.</param>
 /// <param name="userInfo">The user's identity that the event happened to.</param>
 public static EventBuilder SetUserIdentity(this EventBuilder builder, UserInfo userInfo) {
     builder.Target.SetUserIdentity(userInfo);
     return builder;
 }
 public SessionHeartbeat(UserInfo user, ExceptionlessClient client) {
     User = user;
     _client = client;
     _timer = new Timer(SendHeartbeat, null, _interval, _interval);
 }
Ejemplo n.º 5
0
 protected bool Equals(UserInfo other) {
     return string.Equals(Identity, other.Identity) && string.Equals(Name, other.Name) && Equals(Data, other.Data);
 }