예제 #1
0
        public void StartImportProcess(CancellationToken cancellationToken = default(CancellationToken),
                                       string clientid = "", bool ignoreError = false, string path = "")
        {
            Tz.Net.DataSchema.ImportExport iex = new Net.DataSchema.ImportExport(clientid);
            ImportEvent impe = iex.ImportScheduleNow(ignoreError, path);

            impe.ImportNow();
        }
예제 #2
0
        public void StartProcessing(CancellationToken cancellationToken = default(CancellationToken),
                                    string clientid = "", ExportSettings exportSettings = null)
        {
            Tz.Net.DataSchema.ImportExport iex = new Net.DataSchema.ImportExport(clientid);
            if (exportSettings == null)
            {
                exportSettings = new ExportSettings();
            }
            ExportEvent exportEvent = iex.ExportScheduleNow(exportSettings, @"D:/temp");

            exportEvent.ExecuteNow();
        }