Exemple #1
0
 /// <summary>
 /// Gets the instance of IdentifyServiceManager.
 /// </summary>
 /// <param name="baseOAuthService">The base oAuth service.</param>
 /// <returns>
 /// IdentifyServiceManager
 /// </returns>
 public static IdentifyServiceManager getInstance(BaseOAuthService baseOAuthService)
 {
     if (serviceManager == null)
     {
         OAuthFactory.setInstance(baseOAuthService);
         serviceManager = new IdentifyServiceManager();
         Debug.WriteLine("Identify Service instance has been created");
     }
     Debug.WriteLine("Identify Service instance has been already created");
     return(serviceManager);
 }
 /// <summary>
 /// Sets the instance.
 /// </summary>
 /// <param name="service">The service.</param>
 public static void setInstance(BaseOAuthService service)
 {
     INSTANCE = new OAuthFactory(service);
 }
 private OAuthFactory(BaseOAuthService service)
 {
     this.authService = service;
 }