Hello,
we need to monitore the number of TUs on our TM Server? is there a smart function to get this count?
Thank you
Sébastien
Hello,
we need to monitore the number of TUs on our TM Server? is there a smart function to get this count?
Thank you
Sébastien
Hi Sebastien,
If I understand your question correctly, you can use the following code:
var server = new TranslationProviderServer(uri, false, userName, password);
int total = 0;
foreach (var tm in server.GetTranslationMemories(TranslationMemoryProperties.All))
{
total += tm.GetTranslationUnitCount();
}
Hi Sebastien,
If I understand your question correctly, you can use the following code:
var server = new TranslationProviderServer(uri, false, userName, password);
int total = 0;
foreach (var tm in server.GetTranslationMemories(TranslationMemoryProperties.All))
{
total += tm.GetTranslationUnitCount();
}