Esempio n. 1
0
 protected virtual Client GetAccessTokenClient()
 {
     return((Client) new AccessTokenClient(this.Config, SerializationService.GetInstance()));
 }
Esempio n. 2
0
 protected virtual Client GetMetricsClient(string token)
 {
     return((Client) new MetricsClient(this.Config, SerializationService.GetInstance(), token));
 }
 private EnvSessionManager GetInstance()
 {
     if (EnvSessionManagerFactory.manager == null)
     {
         lock (EnvSessionManagerFactory.managerLock)
         {
             if (EnvSessionManagerFactory.manager == null)
             {
                 object envObject = this.GetEnvObject(EnvSessionManagerFactory.provider);
                 EnvSessionManagerFactory.manager = envObject != null ? new EnvSessionManager(new EnvDTEInterop(envObject), SerializationService.GetInstance()) : (EnvSessionManager)null;
             }
         }
     }
     return(EnvSessionManagerFactory.manager);
 }