Licenseserver.preferredconnection Not Working As Expected. 追蹤
Given the following code:
using (var btEngine = new Seagull.BarTender.Print.Engine())
var btFormat = btEngine.Documents.Open("C:\abc\xyz.btw");
// Set label values here......
btEngine.LicenseServer.PreferredConnection.Timeout = 1;
btEngine.LicenseServer.PreferredConnection.Retries = 0;
var messages = new Seagull.BarTender.Print.Messages();
btFormat.Print("Bartender", out messages);
// Display error messages here......
There is something not working as expected with the "btEngine.LicenseServer.PreferredConnection" instructions. Basically, give the code above, I would expect for Bartender to fail if it takes it over one second to connect to the license server. However, based on my experiments, it takes Bartender way more than one second to fail (maybe like 15 seconds on my particular machine). Not only that, if I was to change the "PreferredConnection.Timeout" to 5 seconds then Bartender will take over 1 minute to fail.
So what am I missing? I need Bartender to fail after 10 seconds if is not able to connection to the License Server. I don't want it to retry or try to use an alternate licence server.
★ BarTender Hero ★