public NestResult Start(IEggParameters parameters) { this.eggHost = parameters.Host; var options = new WebendOptions(); Parser.Default.ParseArguments(new string[0], options); return Start(options); }
public DaemonServiceImpl(IEggHost host, IClientConfiguration configuration) { logger.Info("Constructing Daemon Service"); this.host = host; this.configuration = configuration; }
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; }
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); }
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); }
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); }
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; }
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; }