개정판 6a19b48d
issue #00000 페이지 이미지 download 로직 수정
Change-Id: I4da03c36b5a135eea80b57b20ada38239afd1082
IIpc/WcfServer.cs | ||
---|---|---|
27 | 27 |
this.server.OnFileDownloadReceived(new IpcDownloadStatusArgs(progress, isFinish)); |
28 | 28 |
} |
29 | 29 |
|
30 |
public void SendThumbnailReceived(int pageno, string path) |
|
30 |
public void SendThumbnailReceived(int pageno, string path,bool isLast)
|
|
31 | 31 |
{ |
32 |
this.server.OnThumbnailReceived(new IpcThumbnailEventArgs(pageno,path)); |
|
32 |
this.server.OnThumbnailReceived(new IpcThumbnailEventArgs(pageno,path, isLast));
|
|
33 | 33 |
} |
34 | 34 |
} |
35 | 35 |
|
... | ... | |
65 | 65 |
try |
66 | 66 |
{ |
67 | 67 |
this.host = new ServiceHost(new _Server(this), new Uri(string.Format("net.pipe://localhost/{0}", endpoint))); |
68 |
|
|
68 |
this.host.Closing += Host_Closing; |
|
69 | 69 |
//ServiceMetadataBehavior smb = new ServiceMetadataBehavior(); |
70 | 70 |
//smb.HttpGetEnabled = false; |
71 | 71 |
//host.Description.Behaviors.Add(smb); |
... | ... | |
99 | 99 |
//} |
100 | 100 |
} |
101 | 101 |
|
102 |
private void Host_Closing(object sender, EventArgs e) |
|
103 |
{ |
|
104 |
System.Diagnostics.Debug.WriteLine($"IIpc.WcfServer {this.host.BaseAddresses?.First()} closing"); |
|
105 |
} |
|
106 |
|
|
102 | 107 |
public static BinaryMessageEncodingBindingElement gBindingElement = new BinaryMessageEncodingBindingElement |
103 | 108 |
{ |
104 | 109 |
MaxReadPoolSize = Int16.MaxValue, |
내보내기 Unified diff