コード例 #1
0
      public NestResult Start(IEggParameters parameters) {
         this.eggHost = parameters.Host;

         var options = new WebendOptions();
         Parser.Default.ParseArguments(new string[0], options);
         return Start(options);
      }
コード例 #2
0
        public DaemonServiceImpl(IEggHost host, IClientConfiguration configuration)
        {
            logger.Info("Constructing Daemon Service");

             this.host = host;
             this.configuration = configuration;
        }
コード例 #3
0
        public DaemonServiceImpl(IEggHost host, IClientConfiguration configuration)
        {
            logger.Info("Constructing Daemon Service");

            this.host          = host;
            this.configuration = configuration;
        }
コード例 #4
0
      public NestResult Start(IEggParameters parameters) {
         host = parameters?.Host;

         InitializeLogging();

         ryu = new RyuFactory().Create();
         var clusteringConfiguration = new ClusteringConfigurationImpl(IPAddress.Loopback, kZileanServicePort, ClusteringRole.HostOnly);
         ryu.Set<ClusteringConfiguration>(clusteringConfiguration);
         ryu.Setup();
         ryu.Touch<ItzWartyProxiesRyuPackage>();
         ryu.Touch<ServicesRyuPackage>();
         ryu.Touch<ZileanImplRyuPackage>();
         return NestResult.Success;
      }
コード例 #5
0
        public NestResult Start(IEggParameters parameters)
        {
            host = parameters?.Host;

            InitializeLogging();

            ryu = new RyuFactory().Create();
            var clusteringConfiguration = new ClusteringConfigurationImpl(IPAddress.Loopback, kZileanServicePort, ClusteringRole.HostOnly);

            ryu.Set <ClusteringConfiguration>(clusteringConfiguration);
            ryu.Setup();
            ryu.Touch <ItzWartyProxiesRyuPackage>();
            ryu.Touch <ServicesRyuPackage>();
            ryu.Touch <ZileanImplRyuPackage>();
            return(NestResult.Success);
        }
コード例 #6
0
        public NestResult Start(IEggParameters parameters)
        {
            this.host = parameters?.Host;

            ryu.Touch <ItzWartyCommonsRyuPackage>();
            ryu.Touch <ItzWartyProxiesRyuPackage>();

            // Dargon.management
            var managementServerEndpoint = ryu.Get <INetworkingProxy>().CreateAnyEndPoint(kClientManagementPort);

            ryu.Set <IManagementServerConfiguration>(new ManagementServerConfiguration(managementServerEndpoint));

            ((RyuContainerImpl)ryu).Setup(true);

            var userInterfaceThread = new Thread(UserInterfaceThreadStart);

            userInterfaceThread.SetApartmentState(ApartmentState.STA);
            userInterfaceThread.Start();
            return(NestResult.Success);
        }
コード例 #7
0
        public NestResult Start(IEggParameters parameters)
        {
            host = parameters.Host;
            var configuration = pofSerializer.Deserialize <TrinketStartupConfiguration>(streamFactory.CreateMemoryStream(parameters.Arguments).Reader);

            trinketDtpServer = trinketDtpServerFactory.Create(configuration);
            var trinketBridge = new TrinketBridgeImpl(temporaryFileService, processInjectionService, trinketInternalUtilities, configuration, trinketDtpServer);

            keepaliveObjects.Add(trinketBridge);
            var injectionSuccessful = trinketBridge.Initialize();

            if (injectionSuccessful)
            {
                var process = processProxy.GetProcessById(configuration.TargetProcessId);
                process.Exited += (o, s) => {
                    Shutdown(ShutdownReason.None);
                };
                process.EnableRaisingEvents = true;
            }

            return(injectionSuccessful ? NestResult.Success : NestResult.Failure);
        }
コード例 #8
0
        public NestResult Start(IEggParameters parameters)
        {
            host = parameters.Host;
             var configuration = pofSerializer.Deserialize<TrinketStartupConfiguration>(streamFactory.CreateMemoryStream(parameters.Arguments).Reader);
             trinketDtpServer = trinketDtpServerFactory.Create(configuration);
             var trinketBridge = new TrinketBridgeImpl(temporaryFileService, processInjectionService, trinketInternalUtilities, configuration, trinketDtpServer);
             keepaliveObjects.Add(trinketBridge);
             var injectionSuccessful = trinketBridge.Initialize();
             if (injectionSuccessful) {
            var process = processProxy.GetProcessById(configuration.TargetProcessId);
            process.Exited += (o, s) => {
               Shutdown(ShutdownReason.None);
            };
            process.EnableRaisingEvents = true;
             }

             return injectionSuccessful ? NestResult.Success : NestResult.Failure;
        }
コード例 #9
0
        public NestResult Start(IEggParameters parameters)
        {
            this.host = parameters?.Host;

             ryu.Touch<ItzWartyCommonsRyuPackage>();
             ryu.Touch<ItzWartyProxiesRyuPackage>();

             // Dargon.management
             var managementServerEndpoint = ryu.Get<INetworkingProxy>().CreateAnyEndPoint(kClientManagementPort);
             ryu.Set<IManagementServerConfiguration>(new ManagementServerConfiguration(managementServerEndpoint));

             ((RyuContainerImpl)ryu).Setup(true);

             var userInterfaceThread = new Thread(UserInterfaceThreadStart);
             userInterfaceThread.SetApartmentState(ApartmentState.STA);
             userInterfaceThread.Start();
             return NestResult.Success;
        }