개정판 f22054ff
Markus Monitor Service 추가
Change-Id: I384e98ba411d84c908a21d9afac31f936abf7670
ConvertService/ServiceBase/ServiceTestApp/MainWindow.xaml.cs | ||
---|---|---|
694 | 694 |
{ |
695 | 695 |
|
696 | 696 |
} |
697 |
|
|
698 |
private void MonitorTest_Click(object sender, RoutedEventArgs e) |
|
699 |
{ |
|
700 |
Markus.Service.MonitorService.ServiceMonitor service = new Markus.Service.MonitorService.ServiceMonitor(); |
|
701 |
service.Start(null); |
|
702 |
} |
|
703 |
|
|
704 |
private async void FileDownloadTest_Click(object sender, RoutedEventArgs e) |
|
705 |
{ |
|
706 |
try |
|
707 |
{ |
|
708 |
if (!string.IsNullOrWhiteSpace(txtEncodeDownloadFile.Text)) |
|
709 |
{ |
|
710 |
txtDecodeDownloadFile.Text = HttpUtility.UrlDecode(txtEncodeDownloadFile.Text); |
|
711 |
} |
|
712 |
|
|
713 |
if(!string.IsNullOrWhiteSpace(txtDecodeDownloadFile.Text)) |
|
714 |
{ |
|
715 |
txtEncodeDownloadFile.Text = HttpUtility.UrlEncode(txtDecodeDownloadFile.Text); |
|
716 |
} |
|
717 |
|
|
718 |
string File = txtEncodeDownloadFile.Text; |
|
719 |
string Savepath = txtSavePath.Text; |
|
720 |
|
|
721 |
if (!System.IO.Directory.Exists(Savepath)) |
|
722 |
{ |
|
723 |
System.IO.Directory.CreateDirectory(Savepath); |
|
724 |
} |
|
725 |
|
|
726 |
Markus.Service.Convert.ConvertService convertService = new Markus.Service.Convert.ConvertService(); |
|
727 |
|
|
728 |
var result = await convertService.DownloadFileAsync(new Markus.Message.SaveItem { PdfFilePath = File, SavePath = Savepath }); |
|
729 |
|
|
730 |
System.Windows.MessageBox.Show(result.ToString()); |
|
731 |
} |
|
732 |
catch (Exception ex) |
|
733 |
{ |
|
734 |
System.Windows.MessageBox.Show(ex.ToString()); |
|
735 |
} |
|
736 |
} |
|
697 | 737 |
} |
698 | 738 |
|
699 | 739 |
class IntegratedServiceInstaller |
내보내기 Unified diff