public void ValidateNetworkData(NetworkData networkData)
 {
     if (networkData.Format != NetworkDataFormat.V1 && networkData.Format != NetworkDataFormat.V2)
     {
         throw new InvalidOperationException("No cloud data source accepts only network config in version 1 or version 2.");
     }
 }
Esempio n. 2
0
 public void SetNetworkData(NetworkData networkData)
 {
     _dataSource.ValidateNetworkData(networkData);
     _networkData = networkData;
 }