Ejemplo n.º 1
0
 public static WoopraVisitor CreateWithEmail(IWoopraCrypto crypto, string email)
 {
     var emailHash = crypto.MD5HexRapresentation(email);
     var visitor = new WoopraVisitor(emailHash);
     visitor.Properties.Add("email", email);
     return visitor;
 }
Ejemplo n.º 2
0
 public WoopraTracker(WoopraVisitor visitor, string deviceModel, string osVersionString, string appName, string platformString)
 {
     _platformString = platformString;
     IdleTimeout = TimeSpan.FromSeconds(30);
     Visitor = visitor;
     Properties = new Dictionary<string, string>
     {
         { "device",deviceModel },
         { "os",osVersionString },
         { "browser",appName }
     };
     _userAgent = $"SampleApp/1.0 ({osVersionString})";
 }