Skip to content

Instantly share code, notes, and snippets.

@ejsmith
Last active January 25, 2016 22:13
Show Gist options
  • Select an option

  • Save ejsmith/1b5f03f676fcd539f6cd to your computer and use it in GitHub Desktop.

Select an option

Save ejsmith/1b5f03f676fcd539f6cd to your computer and use it in GitHub Desktop.

Revisions

  1. ejsmith revised this gist Jan 25, 2016. 1 changed file with 4 additions and 12 deletions.
    16 changes: 4 additions & 12 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -4,18 +4,10 @@
    -------------------------------------
    Exceptionless can also track user sessions which enables powerful application analytics.

    Sessions can be enabled by simplying calling:

    You can also specify a unique id and friendly display name by calling the following extension method:

    ExceptionlessClient.Default.Configuration.SetUserIdentity("UNIQUE_ID_OR_EMAIL_ADDRESS", "Display Name")

    To enable session start event, session heartbeats and session end events to be sent automatically please
    call the following extension method before the call to Exceptionless.ExceptionlessClient.Default.Register().
    Session tracking can be enabled by simply adding this line to the startup of your application:

    ExceptionlessClient.Default.Configuration.UseSessions()

    If you also want to disable session heartbeat events from being sent every 30 seconds during inactivity
    please pass false as an argument to the UseSessions() extension method.

    ExceptionlessClient.Default.Configuration.UseSessions(false)
    You will also need to tell Exceptionless who the current user is in your application when the user logs in:

    ExceptionlessClient.Default.Configuration.SetUserIdentity("UNIQUE_ID_OR_EMAIL_ADDRESS", "Display Name")
  2. ejsmith revised this gist Jan 25, 2016. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,11 @@

    -------------------------------------
    Session tracking
    Session Tracking
    -------------------------------------
    Exceptionless can track user sessions by a users identity which defaults to Environment.UserName.
    Exceptionless can also track user sessions which enables powerful application analytics.

    Sessions can be enabled by simplying calling:

    You can also specify a unique id and friendly display name by calling the following extension method:

    ExceptionlessClient.Default.Configuration.SetUserIdentity("UNIQUE_ID_OR_EMAIL_ADDRESS", "Display Name")
  3. @niemyjski niemyjski created this gist Jan 25, 2016.
    18 changes: 18 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@

    -------------------------------------
    Session tracking
    -------------------------------------
    Exceptionless can track user sessions by a users identity which defaults to Environment.UserName.
    You can also specify a unique id and friendly display name by calling the following extension method:

    ExceptionlessClient.Default.Configuration.SetUserIdentity("UNIQUE_ID_OR_EMAIL_ADDRESS", "Display Name")

    To enable session start event, session heartbeats and session end events to be sent automatically please
    call the following extension method before the call to Exceptionless.ExceptionlessClient.Default.Register().

    ExceptionlessClient.Default.Configuration.UseSessions()

    If you also want to disable session heartbeat events from being sent every 30 seconds during inactivity
    please pass false as an argument to the UseSessions() extension method.

    ExceptionlessClient.Default.Configuration.UseSessions(false)