Esempio n. 1
0
        static void Main(string[] args)
        {
            MyServer.Setup();

            MyServer.AuthService.SetupAuth();
            Indexation.InitRepository();

            MyServer.Log.Info("Indexation of all musics....  ");
            MyServer.Log.Info(Indexation.Do(Properties.Settings.Default.UseMultiThreading) + "Musics");
            MyServer.Log.Info("Indexation done.");
            Indexation.SaveAllInfos();

            CommandLineInterpreter.Instance.Start();

            MyServer.Log.Info("Saving music info ... ");
            Indexation.SaveAllInfos();
            MyServer.Log.Info("Done.");
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            MyServer.Setup(new System.Net.IPEndPoint(System.Net.IPAddress.Any, 2003));

            Indexation.InitRepository();

            MyServer.Log.Info("Indexation of all musics....  ");
            MyServer.Log.Info(Indexation.Do(Properties.Settings.Default.UseMultiThreading) + "Musics");
            MyServer.Log.Info("Indexation done.");
            //Indexation.ServerMusics[0].Albums[0].Musics.First().Tags[0] = new Utility.Musics.Tags.Tag("test");
            Indexation.SaveAllInfos();

            AllServices = new Service();
            AllServices.SetupServices();

            TrackersClient.Init();

            CommandLineInterpreter.Instance.Start();

            MyServer.Log.Info("Saving music info ... ");
            Indexation.SaveAllInfos();
            MyServer.Log.Info("Done.");
        }
 public override void Execute(IEnumerable <string> args)
 => Indexation.InitRepository();