through the sdk and using the same user, every time I open an order a license is consumed?
if so, how can I programmatically release that license to ensure greater availability for other process?
if not, does that mean that a single user log on will only consume a single license?
how the SP UI does it?
----
Here's the code I have
Code: Select all
try
{
NetworkCredential creds = new NetworkCredential(username, password);
using (SelectServer ss = new SelectServer(new Uri(spserver), creds))
{
string reason;
ss.ChooseProfile += new EventHandler<ChooseProfileEventArgs>(chooseProfile);
if (!ss.TryAuthenticate(out reason))
{
lastError = "SoftPro Access was denied";
_log.Error(lastError +". " + reason);
// Write login failure reason to console and exit.
Console.WriteLine(reason);
return false;
}
IOrderStore os = ss.GetService<IOrderStore>();
}
}
catch () {}