@@ -195,22 +195,22 @@ public void InstallRemotePackage(string remoteFilePath, bool reinstall)
195195 /// <param name="basePackageFilePath">The absolute base app file system path to file on local host to install.</param>
196196 /// <param name="splitPackageFilePaths">The absolute split app file system paths to file on local host to install.</param>
197197 /// <param name="reinstall">Set to <see langword="true"/> if re-install of app should be performed.</param>
198- public void InstallMultiplePackage ( string basePackageFilePath , string [ ] splitPackageFilePaths , bool reinstall )
198+ public void InstallMultiplePackage ( string basePackageFilePath , IList < string > splitPackageFilePaths , bool reinstall )
199199 {
200200 ValidateDevice ( ) ;
201201
202202 string baseRemoteFilePath = SyncPackageToDevice ( basePackageFilePath , OnMainSyncProgressChanged ) ;
203203
204204 void OnMainSyncProgressChanged ( object sender , SyncProgressChangedEventArgs args ) => InstallProgressChanged ? . Invoke ( this , args . ProgressPercentage * 0.45 ) ;
205205
206- string [ ] splitRemoteFilePaths = new string [ splitPackageFilePaths . Length ] ;
207- for ( int i = 0 ; i < splitPackageFilePaths . Length ; i ++ )
206+ string [ ] splitRemoteFilePaths = new string [ splitPackageFilePaths . Count ] ;
207+ for ( int i = 0 ; i < splitPackageFilePaths . Count ; i ++ )
208208 {
209- int percent = 45 + ( 45 * i / splitPackageFilePaths . Length ) ;
209+ int percent = 45 + ( 45 * i / splitPackageFilePaths . Count ) ;
210210
211211 splitRemoteFilePaths [ i ] = SyncPackageToDevice ( splitPackageFilePaths [ i ] , OnSplitSyncProgressChanged ) ;
212212
213- void OnSplitSyncProgressChanged ( object sender , SyncProgressChangedEventArgs args ) => InstallProgressChanged ? . Invoke ( this , percent + ( args . ProgressPercentage * 0.45 / splitPackageFilePaths . Length ) ) ;
213+ void OnSplitSyncProgressChanged ( object sender , SyncProgressChangedEventArgs args ) => InstallProgressChanged ? . Invoke ( this , percent + ( args . ProgressPercentage * 0.45 / splitPackageFilePaths . Count ) ) ;
214214 }
215215
216216 InstallMultipleRemotePackage ( baseRemoteFilePath , splitRemoteFilePaths , reinstall ) ;
@@ -232,18 +232,18 @@ public void InstallMultiplePackage(string basePackageFilePath, string[] splitPac
232232 /// <param name="splitPackageFilePaths">The absolute split app file system paths to file on local host to install.</param>
233233 /// <param name="packageName">The absolute package name of the base app.</param>
234234 /// <param name="reinstall">Set to <see langword="true"/> if re-install of app should be performed.</param>
235- public void InstallMultiplePackage ( string [ ] splitPackageFilePaths , string packageName , bool reinstall )
235+ public void InstallMultiplePackage ( IList < string > splitPackageFilePaths , string packageName , bool reinstall )
236236 {
237237 ValidateDevice ( ) ;
238238
239- string [ ] splitRemoteFilePaths = new string [ splitPackageFilePaths . Length ] ;
240- for ( int i = 0 ; i < splitPackageFilePaths . Length ; i ++ )
239+ string [ ] splitRemoteFilePaths = new string [ splitPackageFilePaths . Count ] ;
240+ for ( int i = 0 ; i < splitPackageFilePaths . Count ; i ++ )
241241 {
242- int percent = 90 * i / splitPackageFilePaths . Length ;
242+ int percent = 90 * i / splitPackageFilePaths . Count ;
243243
244244 splitRemoteFilePaths [ i ] = SyncPackageToDevice ( splitPackageFilePaths [ i ] , OnSyncProgressChanged ) ;
245245
246- void OnSyncProgressChanged ( object sender , SyncProgressChangedEventArgs args ) => InstallProgressChanged ? . Invoke ( this , percent + ( args . ProgressPercentage * 0.9 / splitPackageFilePaths . Length ) ) ;
246+ void OnSyncProgressChanged ( object sender , SyncProgressChangedEventArgs args ) => InstallProgressChanged ? . Invoke ( this , percent + ( args . ProgressPercentage * 0.9 / splitPackageFilePaths . Count ) ) ;
247247 }
248248
249249 InstallMultipleRemotePackage ( splitRemoteFilePaths , packageName , reinstall ) ;
@@ -262,7 +262,7 @@ public void InstallMultiplePackage(string[] splitPackageFilePaths, string packag
262262 /// <param name="baseRemoteFilePath">The absolute base app file path to package file on device.</param>
263263 /// <param name="splitRemoteFilePaths">The absolute split app file paths to package file on device.</param>
264264 /// <param name="reinstall">Set to <see langword="true"/> if re-install of app should be performed.</param>
265- public void InstallMultipleRemotePackage ( string baseRemoteFilePath , string [ ] splitRemoteFilePaths , bool reinstall )
265+ public void InstallMultipleRemotePackage ( string baseRemoteFilePath , IList < string > splitRemoteFilePaths , bool reinstall )
266266 {
267267 ValidateDevice ( ) ;
268268
@@ -306,7 +306,7 @@ public void InstallMultipleRemotePackage(string baseRemoteFilePath, string[] spl
306306 /// <param name="splitRemoteFilePaths">The absolute split app file paths to package file on device.</param>
307307 /// <param name="packageName">The absolute package name of the base app.</param>
308308 /// <param name="reinstall">Set to <see langword="true"/> if re-install of app should be performed.</param>
309- public void InstallMultipleRemotePackage ( string [ ] splitRemoteFilePaths , string packageName , bool reinstall )
309+ public void InstallMultipleRemotePackage ( IList < string > splitRemoteFilePaths , string packageName , bool reinstall )
310310 {
311311 ValidateDevice ( ) ;
312312
0 commit comments