Exemple #1
0
        public static void Main(string[] args)
        {
            Options options = Argument.Parse <Options>(args);

            if (options.IsValid())
            {
                using (TrackerClient client = new TrackerClient())
                {
                    TrackerSession session = client.ConnectAsync(options.Tracker).Result;
                    session.Announce(options.Hashes.Select(FileHash.Parse).ToArray());

                    while (true)
                    {
                        Console.WriteLine(session.NextAsync().Result);
                    }
                }
            }
        }
 public ActionsViewModel()
 {
     this.Actions = new ObservableCollection <RecentAction>();
     this.session = new TrackerSession();
     this.IsError = false;
 }