mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 20:46:30 +00:00
move zmq port to config file for C# and python
This commit is contained in:
@@ -19,7 +19,6 @@ public interface IAuthProvider
|
||||
User CurrentUser { get; }
|
||||
}
|
||||
|
||||
|
||||
public class PythonResourceLoader : IResourceLoader, IAuthProvider
|
||||
{
|
||||
private readonly DealerSocket _dealer = new();
|
||||
@@ -27,11 +26,11 @@ public class PythonResourceLoader : IResourceLoader, IAuthProvider
|
||||
|
||||
public User CurrentUser { get; set; } = null!;
|
||||
|
||||
public PythonResourceLoader()
|
||||
public PythonResourceLoader(PythonConfig config)
|
||||
{
|
||||
StartPython();
|
||||
//StartPython();
|
||||
_dealer.Options.Identity = Encoding.UTF8.GetBytes(_clientId.ToString("N"));
|
||||
_dealer.Connect($"tcp://{SecurityConstants.ZMQ_HOST}:{SecurityConstants.ZMQ_PORT}");
|
||||
_dealer.Connect($"tcp://{config.ZeroMqHost}:{config.ZeroMqPort}");
|
||||
}
|
||||
|
||||
private void StartPython()
|
||||
|
||||
Reference in New Issue
Block a user