forked from segmentio/Analytics.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
30 lines (26 loc) · 699 Bytes
/
Program.cs
File metadata and controls
30 lines (26 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Segment;
using Segment.Test;
namespace Test.Net35
{
class Program
{
static void Main(string[] args)
{
Logger.Handlers += Logger_Handlers;
//Analytics.Initialize(Segment.Test.Constants.WRITE_KEY);
//FlushTests tests = new FlushTests();
//tests.PerformanceTestNet35();
Analytics.Initialize("nAZ4rSBdQMoMJ6bswze53Jorbpjtne78");
Analytics.Client.Track("prateek", "Item Purchased (with .Net 3.5)");
Analytics.Client.Flush();
}
private static void Logger_Handlers(Logger.Level level, string message, IDictionary<string, object> args)
{
Console.WriteLine(message);
}
}
}