Esempio n. 1
0
 public static GMailServiceManager GetInstance()
 {
     if (_instance == null)
     {
         _instance = new GMailServiceManager();
     }
     return(_instance);
 }
Esempio n. 2
0
        public static IServiceManager GetServiceManager(SiteSettingTypes siteSettingType)
        {
            switch (siteSettingType)
            {
            case SiteSettingTypes.SharePoint:
                return(SharePointServiceManager.GetInstance());

            case SiteSettingTypes.GMail:
                return(GMailServiceManager.GetInstance());

            case SiteSettingTypes.FileSystem:
                return(FileSystemServiceManager.GetInstance());

            case SiteSettingTypes.SQLServer:
                return(SQLServerServiceManager.GetInstance());

            case SiteSettingTypes.CRM:
                return(CRMServiceManager.GetInstance());

            default:
                return(null);
            }
        }