示例#1
0
 public static void InitiateServer()
 {
     JsonConvert.DefaultSettings = () => new JsonSerializerSettings {
         ObjectCreationHandling = ObjectCreationHandling.Replace
     };
     Handler.AddCommands();
     Room.AddRooms();
     EventManager.InitiateEvents();
     StartListening();
 }
        public static void InitiateServer()
        {
            Handler.AddCommands();
            Room.AddRooms();
            ServerManager.Start();

            var task = new Task(() => TickManager.Tick(), TaskCreationOptions.LongRunning);

            task.Start();
        }
示例#3
0
        static void Main()
        {
            ConsoleX.WriteTitle("MS SQL CLR Assembly Extractor");

            Handler.AddCommands(new ICommandContainer[] { new ProgramCommands() });

            ConsoleX.WriteLine("Use the commands to build a connection string", ConsoleX.MessageStatus.Info);

            ConsoleX.WriteLine("Once complete use -c to return to the exporter.", ConsoleX.MessageStatus.Info);

            Handler.Execute("-bc");

            Handler.Listen();
        }