개정판 06f13e11
한글 파일명 다운로드 에러 수정
멀티 서비스 수정
Change-Id: I1a7eb48f1c758d32c805eb0394c66b92f9d27330
ConvertService/ServiceBase/ServiceTestApp/MainWindow.xaml.cs | ||
---|---|---|
28 | 28 |
using Newtonsoft.Json; |
29 | 29 |
using System.Web.Script.Serialization; |
30 | 30 |
using System.Net.Http; |
31 |
using System.Web; |
|
31 | 32 |
|
32 | 33 |
namespace ServiceTestApp |
33 | 34 |
{ |
... | ... | |
47 | 48 |
|
48 | 49 |
timer.Interval = new TimeSpan(0, 0, 0, 0, 700); |
49 | 50 |
timer.Tick += Timer_Tick; |
50 |
timer.Start(); |
|
51 |
//timer.Start();
|
|
51 | 52 |
} |
52 | 53 |
System.Windows.Threading.DispatcherTimer timer = new System.Windows.Threading.DispatcherTimer(); |
53 | 54 |
private string MarkusDBConnectionString; |
... | ... | |
515 | 516 |
|
516 | 517 |
return await new HttpClient().SendAsync(httpRequestMessage); |
517 | 518 |
} |
519 |
|
|
520 |
private async void ConvertWebServiceTest_click(object sender, RoutedEventArgs e) |
|
521 |
{ |
|
522 |
using (Markus.Service.DataBase.ConvertDatabase database = new Markus.Service.DataBase.ConvertDatabase(MarkusDBConnectionString)) |
|
523 |
{ |
|
524 |
|
|
525 |
var items = database.GetConvertItems(Markus.Message.StatusCodeType.Completed).Take(100).ToList(); |
|
526 |
|
|
527 |
var service = new ConvertWebService.ConversionSoapClient(); |
|
528 |
|
|
529 |
int count = 0; |
|
530 |
|
|
531 |
foreach (var item in items) |
|
532 |
{ |
|
533 |
count++; |
|
534 |
byte[] bytes = Encoding.UTF8.GetBytes(item.OriginfilePath); |
|
535 |
var url = Convert.ToBase64String(bytes); |
|
536 |
var result = await service.ConvertRunAsync(count.ToString(), item.UniqueKey, item.UniqueKey + count.ToString(), count.ToString(), "111111", item.UniqueKey, url); |
|
537 |
|
|
538 |
System.Diagnostics.Debug.WriteLine(item.ConvertID + " " + result.ToString()); |
|
539 |
} |
|
540 |
} |
|
541 |
} |
|
518 | 542 |
} |
519 | 543 |
|
520 | 544 |
class IntegratedServiceInstaller |
내보내기 Unified diff