This class implements implements methods for MAB backup provider
Inheritance: IPsBackupProvider
コード例 #1
0
        /// <summary>
        /// To get provider instance using provider type.
        /// </summary>
        public IPsBackupProvider GetProviderInstance(PsBackupProviderTypes providerType)
        {
            IPsBackupProvider psBackupProvider = null;

            switch (providerType)
            {
            case PsBackupProviderTypes.IaasVm:
                psBackupProvider = new IaasVmPsBackupProvider();
                break;

            case PsBackupProviderTypes.AzureSql:
                psBackupProvider = new AzureSqlPsBackupProvider();
                break;

            case PsBackupProviderTypes.Mab:
                psBackupProvider = new MabPsBackupProvider();
                break;

            case PsBackupProviderTypes.Dpm:
                psBackupProvider = new DpmPsBackupProvider();
                break;

            default:
                break;
            }

            psBackupProvider.Initialize(providerData, serviceClientAdapter);

            return(psBackupProvider);
        }
コード例 #2
0
        /// <summary>
        /// To get provider instance using provider type.
        /// </summary>
        public IPsBackupProvider GetProviderInstance(PsBackupProviderTypes providerType)
        {
            IPsBackupProvider psBackupProvider = null;

            switch (providerType)
            {
                case PsBackupProviderTypes.IaasVm:
                    psBackupProvider = new IaasVmPsBackupProvider();
                    break;
                case PsBackupProviderTypes.Mab:
                    psBackupProvider = new MabPsBackupProvider();
                    break;
                case PsBackupProviderTypes.Dpm:
                    psBackupProvider = new DpmPsBackupProvider();
                    break;
                default:
                    break;
            }

            psBackupProvider.Initialize(providerData, serviceClientAdapter);

            return psBackupProvider;
        }