protected AzureResource(string resourceId, IAzureResourceService azureResourceService) { if (resourceId is null) { throw new ArgumentNullException(nameof(resourceId)); } ResourceId = AzureResourceIdentifier.Parse(resourceId); AzureResourceService = azureResourceService ?? throw new ArgumentNullException(nameof(azureResourceService)); }
internal AzureResource(string resourceId) { if (resourceId is null) { throw new ArgumentNullException(nameof(resourceId)); } ResourceId = AzureResourceIdentifier.Parse(resourceId); AzureResourceService = null; }