示例#1
0
 /// <summary>
 /// Tracks a user on Loggr
 /// </summary>
 /// <param name="username">Username of user to track</param>
 /// <param name="email">Email address of user to track</param>
 /// <param name="page">Page being viewed by user</param>
 /// <param name="async">A bool that specifies how user tracking should be sent to Loggr. Typically an application will post asynchronously for best performance, but sometimes it needs to be posted synchronously if the application needs to block until the post has completed</param>
 public void TrackUser(string username, string email, string page, bool async)
 {
     // post async or sync
     if (async)
     {
         TrackUserDelegate del = new TrackUserDelegate(TrackUserBase);
         del.BeginInvoke(username, email, page, null, null);
     }
     else
     {
         TrackUserBase(username, email, page);
     }
 }
示例#2
0
 /// <summary>
 /// Tracks a user on Loggr
 /// </summary>
 /// <param name="username">Username of user to track</param>
 /// <param name="email">Email address of user to track</param>
 /// <param name="page">Page being viewed by user</param>
 /// <param name="async">A bool that specifies how user tracking should be sent to Loggr. Typically an application will post asynchronously for best performance, but sometimes it needs to be posted synchronously if the application needs to block until the post has completed</param>
 public void TrackUser(string username, string email, string page, bool async)
 {
     // post async or sync
     if (async)
     {
         TrackUserDelegate del = new TrackUserDelegate(TrackUserBase);
         del.BeginInvoke(username, email, page, null, null);
     }
     else TrackUserBase(username, email, page);
 }