/// <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); }
/// <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; }