Skip to content

Commit

Permalink
Add appId setter to Tracker (close #104)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfi89 authored and Paul Boocock committed Jun 25, 2021
1 parent 83ece9c commit c8d070c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Snowplow.Tracker/Tracker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -522,5 +522,20 @@ public Tracker SetSubject(Subject subject)
}
return this;
}

/// <summary>
/// Set the appid of the events fired by the tracker
/// </summary>
/// <param name="appid">AppId to track</param>
/// <returns>this</returns>
public Tracker SetAppId(string appId)
{
lock (_lock)
{
_standardNvPairs[Constants.APP_ID] = appId;
}
return this;
}

}
}

0 comments on commit c8d070c

Please sign in to comment.