Have an issue running 2 instances of a Trinity console app?
I'm overriding the ports properly, ...that's not the problem...
```C#
TrinityConfig.HttpPort = nodePort;
#pragma warning disable CS0612 // Type or member is obsolete
TrinityConfig.ServerPort = TrinityConfig.HttpPort + 1;
#pragma warning restore CS0612 // Type or member is obsolete
```
The problem seems to be because I'm running each instance out of the _same "Debug" folder_ in Visual Studio. See below.

How can I override/specify which Trinity database folder to use? Is this what I need to be able to do?
NOTE: If I make a copy of my "Debug" folder and run an instance out of each folder, things appear to work fine.
Michael
关闭于 2023-05-08 4 条评论