Hi all,
We have 24/7 provisioning windows services, as requests come through
they are processed.
I am using the .NET APIs, each application requires access to 2 google
domains (as we provision to 2 domains).
code as follows:
public partial class Component : System.ComponentModel.Component
{
private AppsService m_gServiceONE = null;
private AppsService m_gServiceTWO = null;
public Component()
{
InitializeComponent();
}
public Component(IContainer container)
{
container.Add(this);
InitializeComponent();
}
protected virtual AppsService GoogleConnectONE()
{
try
{
if (m_gServiceONE == null)
{
m_gServiceONE = new
AppsService(GoogleONEDetails.Domain, GoogleONECredentials.Username,
GoogleONECredentials.Password);
}
return m_gServiceONE;
}
catch (Exception e)
{
throw e;
}
}
protected virtual AppsService GoogleConnectTWO()
{
try
{
if (m_gServiceTWO== null)
{
m_gServiceTWO = new
AppsService(GoogleTWODetails.Domain, GoogleTWOCredentials.Username,
GoogleTWOCredentials.Password);
}
return m_gServiceTWO;
}
catch (Exception e)
{
throw e;
}
}
...
}
Now, subclasses access these, but of course the actual AppService
object is held in memory for the amount of time it is being used.
My question is - after 24 hours will it expire? [I will find out
tomorrow night anyway, but I assume it will expire!]
If it expires, after expiry what error will be thrown? (what error
code?)
Many Thanks,
Stu.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Apps APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---