private ConvertAccountResourceToAccountContext ( BatchAccount resource ) : void | ||
resource | BatchAccount | Resource info returned by RP |
리턴 | void |
/// <summary> /// Create a new BAC and fill it in /// </summary> /// <param name="resource">Resource info returned by RP</param> /// <returns>new instance of BatchAccountContext</returns> internal static BatchAccountContext ConvertAccountResourceToNewAccountContext(AccountResource resource) { var baContext = new BatchAccountContext(); baContext.ConvertAccountResourceToAccountContext(resource); return(baContext); }
/// <summary> /// Create a new BAC and fill it in /// </summary> /// <param name="resource">Resource info returned by RP</param> /// <param name="azureContext">The Azure Context</param> /// <returns>new instance of BatchAccountContext</returns> internal static BatchAccountContext ConvertAccountResourceToNewAccountContext(BatchAccount resource, IAzureContext azureContext) { var baContext = new BatchAccountContext(azureContext); baContext.ConvertAccountResourceToAccountContext(resource); return(baContext); }
/// <summary> /// Create a new BAC and fill it in /// </summary> /// <param name="resource">Resource info returned by RP</param> /// <returns>new instance of BatchAccountContext</returns> internal static BatchAccountContext ConvertAccountResourceToNewAccountContext(AccountResource resource) { var baContext = new BatchAccountContext(); baContext.ConvertAccountResourceToAccountContext(resource); return baContext; }