mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:06:30 +00:00
create clients without window
This commit is contained in:
@@ -51,11 +51,8 @@ public class GpsMatcherClient : IGpsMatcherClient
|
|||||||
process.StartInfo = new ProcessStartInfo
|
process.StartInfo = new ProcessStartInfo
|
||||||
{
|
{
|
||||||
FileName = SecurityConstants.ExternalGpsDeniedPath,
|
FileName = SecurityConstants.ExternalGpsDeniedPath,
|
||||||
WorkingDirectory = SecurityConstants.EXTERNAL_GPS_DENIED_FOLDER
|
WorkingDirectory = SecurityConstants.EXTERNAL_GPS_DENIED_FOLDER,
|
||||||
//Arguments = $"-e {credentials.Email} -p {credentials.Password} -f {apiConfig.ResourcesFolder}",
|
CreateNoWindow = true
|
||||||
//RedirectStandardOutput = true,
|
|
||||||
//RedirectStandardError = true,
|
|
||||||
//CreateNoWindow = true
|
|
||||||
};
|
};
|
||||||
|
|
||||||
process.OutputDataReceived += (_, e) => { if (e.Data != null) Console.WriteLine(e.Data); };
|
process.OutputDataReceived += (_, e) => { if (e.Data != null) Console.WriteLine(e.Data); };
|
||||||
|
|||||||
@@ -44,9 +44,7 @@ public class InferenceClient : IInferenceClient
|
|||||||
{
|
{
|
||||||
FileName = SecurityConstants.EXTERNAL_INFERENCE_PATH,
|
FileName = SecurityConstants.EXTERNAL_INFERENCE_PATH,
|
||||||
Arguments = $"-p {_inferenceClientConfig.ZeroMqPort} -lp {_loaderClientConfig.ZeroMqPort} -a {_inferenceClientConfig.ApiUrl}",
|
Arguments = $"-p {_inferenceClientConfig.ZeroMqPort} -lp {_loaderClientConfig.ZeroMqPort} -a {_inferenceClientConfig.ApiUrl}",
|
||||||
//RedirectStandardOutput = true,
|
CreateNoWindow = true
|
||||||
//RedirectStandardError = true,
|
|
||||||
//CreateNoWindow = true
|
|
||||||
};
|
};
|
||||||
|
|
||||||
process.OutputDataReceived += (_, e) => { if (e.Data != null) Console.WriteLine(e.Data); };
|
process.OutputDataReceived += (_, e) => { if (e.Data != null) Console.WriteLine(e.Data); };
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ public class LoaderClient(LoaderClientConfig config, ILogger logger, Cancellatio
|
|||||||
{
|
{
|
||||||
FileName = SecurityConstants.EXTERNAL_LOADER_PATH,
|
FileName = SecurityConstants.EXTERNAL_LOADER_PATH,
|
||||||
Arguments = $"--port {config.ZeroMqPort} --api {config.ApiUrl}",
|
Arguments = $"--port {config.ZeroMqPort} --api {config.ApiUrl}",
|
||||||
//CreateNoWindow = true
|
CreateNoWindow = true
|
||||||
};
|
};
|
||||||
|
|
||||||
process.OutputDataReceived += (_, e) =>
|
process.OutputDataReceived += (_, e) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user