Exemplo n.º 1
0
 public void Run() {
    var ryu = new RyuFactory().Create();
    ryu.Touch<ItzWartyCommonsRyuPackage>();
    ryu.Setup();
    AssertTrue(ryu.Get<ICollectionFactory>() is CollectionFactory);
    AssertTrue(ryu.Get<ObjectPoolFactory>() is DefaultObjectPoolFactory);
 }
      static NestDeployer() {
         var ryu = new RyuFactory().Create();
         ryu.Touch<ItzWartyProxiesRyuPackage>();
         fileSystemProxy = ryu.Get<IFileSystemProxy>();

         nestClientPath = Path.Combine(NestDeployerConstants.RootSolutionDirectoryPath, "deploy", "nest_client");
         fileSystemProxy.PrepareDirectory(nestClientPath);

//         nestServerPath = Path.Combine(NestDeployerConstants.RootSolutionDirectoryPath, "deploy", "nest_server");
         nestServerPath = @"C:\Apache24\htdocs"; //Path.Combine(NestDeployerConstants.RootSolutionDirectoryPath, "deploy", "nest_server");
         fileSystemProxy.PrepareDirectory(nestServerPath);
      }
Exemplo n.º 3
0
        public static void Main(string[] args)
        {
            InitializeLogging();

             var ryu = new RyuFactory().Create();
             ((RyuContainerImpl)ryu).Setup(true);

             const int kPort = 21337;
             var courierClientFactory = ryu.Get<CourierClientFactory>();
             var courierClient = courierClientFactory.CreateUdpCourierClient(kPort,
            new CourierClientConfiguration {
               Identifier = Guid.NewGuid()
            });
             courierClient.RegisterPayloadHandler<GamePadStateDto>(HandleGamePadState);

             new ManualResetEvent(false).WaitOne();
        }
        public static void Main()
        {
            var ryu = new RyuFactory().Create();
             ryu.Touch<ItzWartyCommonsRyuPackage>();
             ryu.Touch<ItzWartyProxiesRyuPackage>();
             ryu.Setup();

             var application = Application.Current ?? new Application();

             var projectLoader = new RiotProjectLoader(@"T:\Games\LeagueOfLegends\RADS");
             var gameProject = projectLoader.LoadProject(RiotProjectType.GameClient);

             var nodeViewModelFactory = ryu.Get<NodeViewModelFactory>();
             var viewModel = nodeViewModelFactory.CreateFromNode(gameProject.ReleaseManifest.Root);

             var window = new FileExplorer {
            DataContext = new[] { viewModel }
             };
             application.Run(window);
        }
Exemplo n.º 5
0
      public void Run() {
         ZileanApplicationEgg.InitializeLogging();

         var serverHatchling = new ZileanApplicationEgg();
         serverHatchling.Start(null);

         var systemState = CreateMock<SystemState>();
         var managementServer = CreateMock<ILocalManagementServer>();

         var clientRyu = new RyuFactory().Create();
         clientRyu.Set(systemState);
         clientRyu.Set(managementServer);
         clientRyu.Touch<ItzWartyProxiesRyuPackage>();
         clientRyu.Touch<ServicesRyuPackage>();
         clientRyu.Touch<ZileanClientApiRyuPackage>();

         var chronokeeper = clientRyu.Get<ChronokeeperService>();
         Debug.WriteLine("Got sequential id: " + chronokeeper.GenerateSequentialId());
         Debug.WriteLine("Got sequential guid: " + chronokeeper.GenerateSequentialGuid());

         serverHatchling.Shutdown();
      }
Exemplo n.º 6
0
        public static void Main(string[] args)
        {
            InitializeLogging();
             Console.Title = "Surface";

             var ryu = new RyuFactory().Create();
             ((RyuContainerImpl)ryu).Setup(true);

             const int kPort = 21337;
             var courierClientFactory = ryu.Get<CourierClientFactory>();
             var courierClient = courierClientFactory.CreateUdpCourierClient(kPort, new CourierClientConfiguration {
            Identifier = Guid.NewGuid()
             });

             int counter = 0;
             while (true) {
            var state = GetGamePadState(counter++);

            Console.WriteLine("Sending state: " + state);
            courierClient.SendBroadcast(state);
            Thread.Sleep(70);
             }
        }