Differences

This shows you the differences between the selected revisions of the page.

2013-04-15 2013-05-13
&beta_feature (martin) Converting to .NET Assembly (no example yet) (martin)
Line 32: Line 32:
synchronize both -filemask="|*.bak; *.tmp" synchronize both -filemask="|*.bak; *.tmp"
</code> </code>
 +
 +===== [[net]] Converting to .NET Assembly =====
 +When [[library_from_script|converting script to .NET Assembly]], map ''synchronize'' command to ''[[library_session_synchronizedirectories|Session.SynchronizeDirectories]]'' method.
 +
 +Parameters mapping: Command parameter ''local|remote|both'' maps to method parameter ''mode'', with values ''SynchronizationMode.Local'', ''SynchronizationMode.Remote'' and ''SynchronizationMode.Both'', respectively. Command parameter ''local directory'' maps to method parameter ''localPath''. Command parameter ''remote directory'' maps to method parameter ''remotePath''. You have to [[library_from_script#paths|convert relative paths to absolute paths]].
 +
 +Switches mapping:
 +^ Switch                  ^ Mapping ^
 +| ''-delete''              | Value ''true'' (''$True'') for method parameter ''removeFiles''. |
 +| ''-mirror''              | Value ''true'' (''$True'') for method parameter ''mirror''. |
 +| ''-criteria''            | Set method parameter ''criteria''. Use ''SynchronizationCriteria.Time'' for ''time'', ''SynchronizationCriteria.Size'' for ''size'', ''SynchronizationCriteria.Either'' for ''either'' and ''SynchronizationCriteria.None'' for ''none''. |
 +| ''-permissions'' \\ ''-nopermissions'' \\  ''-transfer'' \\ ''-filemask'' \\ ''-resumesupport'' | [[library_from_script_transfer_settings|Converting transfer settings scripting switches]] to .NET assembly class ''TransferSettings''. |
 +| ''-speed=<kibps>''      | Not supported. |
 +
 +To emulate ''[[scriptcommand_option|option batch abort]]'' mode, call ''[[library_operationresultbase|TransferOperationResult.Check]]'' on method's result. See also [[library_session#results|Capturing results of operations]].

Last modified: by martin