Class ExporterAsync
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.Core.TM.ImportExport
Assembly: Sdl.Core.TM.ImportExport.dll
Syntax
public class ExporterAsync
Constructors
ExporterAsync(ICultureMetadataManager, Func<Int32, Int32, Task<Boolean>>)
Declaration
public ExporterAsync(ICultureMetadataManager cultureMetadataManager, Func<int, int, Task<bool>> batchExportedAsync = null)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureMetadataManager.ICultureMetadataManager | cultureMetadataManager | |
System.Func<System.Int32, System.Int32, System.Threading.Tasks.Task<System.Boolean>> | batchExportedAsync |
Properties
FilterExpression
Gets or sets the filter expression.
Declaration
public FilterExpression FilterExpression { get; set; }
Property Value
Type | Description |
---|---|
FilterExpression | The filter expression. |
TmxExportFormat
Gets or sets the flavour of the exported TMX.
Declaration
public TranslationUnitFormat TmxExportFormat { get; set; }
Property Value
Type | Description |
---|---|
TranslationUnitFormat |
Methods
ExportAsync(IExportOriginAsync, String, Boolean)
Starts the export process with the configured settings into a file with the specified name.
Declaration
public Task ExportAsync(IExportOriginAsync exportOrigin, string fileName, bool overwriteExisting)
Parameters
Type | Name | Description |
---|---|---|
IExportOriginAsync | exportOrigin | |
System.String | fileName | Name of the file. |
System.Boolean | overwriteExisting | if set to |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
OnBatchExportedAsync(Int32, Int32)
Declaration
protected virtual Task<bool> OnBatchExportedAsync(int totalProcessed, int totalExported)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | totalProcessed | |
System.Int32 | totalExported |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |