개정판 3b938959
issue #000000 검색 수정
Change-Id: I7ac25e17a0b62f753c52f52b8a77b73bb3bbe2bf
KCOM/App.xaml.cs | ||
---|---|---|
277 | 277 |
//httpTransport.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard; |
278 | 278 |
//System.ServiceModel.Channels.CustomBinding binding = new System.ServiceModel.Channels.CustomBinding(reliableSession, httpTransport); |
279 | 279 |
#endregion |
280 |
#elif CUSTOM_BINDING |
|
280 |
#elif _CUSTOM_BINDING
|
|
281 | 281 |
#region custombinding |
282 | 282 |
var customBinding = new System.ServiceModel.Channels.CustomBinding() |
283 | 283 |
{ |
... | ... | |
287 | 287 |
SendTimeout = new TimeSpan(0, 30, 0), |
288 | 288 |
}; |
289 | 289 |
|
290 |
var messageEncoding = new WcfExtensions.ServiceModel.Channels.CompressionBindingElement(); |
|
291 |
messageEncoding.Level = WcfExtensions.ServiceModel.Channels.CompressionLevel.Maximum; |
|
290 |
//var messageEncoding = new WcfExtensions.ServiceModel.Channels.CompressionBindingElement();
|
|
291 |
//messageEncoding.Level = WcfExtensions.ServiceModel.Channels.CompressionLevel.Maximum;
|
|
292 | 292 |
|
293 |
var httpTranport = new System.ServiceModel.Channels.HttpTransportBindingElement |
|
293 |
var httpTranport = new System.ServiceModel.Channels.HttpsTransportBindingElement
|
|
294 | 294 |
{ |
295 | 295 |
MaxBufferPoolSize = Int32.MaxValue, |
296 | 296 |
MaxBufferSize = Int32.MaxValue, |
... | ... | |
300 | 300 |
//ProxyAddress = new Uri("Http://127.0.0.1:8888") |
301 | 301 |
}; |
302 | 302 |
|
303 |
|
|
304 | 303 |
customBinding.CreateBindingElements(); |
305 |
customBinding.Elements.Add(messageEncoding); |
|
304 |
//customBinding.Elements.Add(messageEncoding);
|
|
306 | 305 |
customBinding.Elements.Add(httpTranport); |
306 |
|
|
307 |
|
|
308 |
_binding = customBinding; |
|
309 |
#endregion |
|
310 |
|
|
311 |
#elif CUSTOM_BINDING |
|
312 |
#region custombinding |
|
313 |
var customBinding = new System.ServiceModel.Channels.CustomBinding() |
|
314 |
{ |
|
315 |
OpenTimeout = new TimeSpan(0, 30, 0), |
|
316 |
ReceiveTimeout = new TimeSpan(0, 30, 0), |
|
317 |
CloseTimeout = new TimeSpan(0, 30, 0), |
|
318 |
SendTimeout = new TimeSpan(0, 30, 0), |
|
319 |
}; |
|
320 |
|
|
321 |
//var messageEncoding = new WcfExtensions.ServiceModel.Channels.CompressionBindingElement(); |
|
322 |
//messageEncoding.Level = WcfExtensions.ServiceModel.Channels.CompressionLevel.Maximum; |
|
323 |
|
|
324 |
var httpTranport = new System.ServiceModel.Channels.HttpsTransportBindingElement |
|
325 |
{ |
|
326 |
MaxBufferPoolSize = Int32.MaxValue, |
|
327 |
MaxBufferSize = Int32.MaxValue, |
|
328 |
MaxReceivedMessageSize = Int32.MaxValue, |
|
329 |
RequestInitializationTimeout = new TimeSpan(0, 30, 0), |
|
330 |
//UseDefaultWebProxy = false, |
|
331 |
//ProxyAddress = new Uri("Http://127.0.0.1:8888") |
|
332 |
}; |
|
333 |
|
|
334 |
customBinding.CreateBindingElements(); |
|
307 | 335 |
|
336 |
var reliableSession = new System.ServiceModel.Channels.ReliableSessionBindingElement(); |
|
337 |
|
|
338 |
var encoding = new System.ServiceModel.Channels.TextMessageEncodingBindingElement |
|
339 |
{ |
|
340 |
MaxReadPoolSize = Int32.MaxValue, |
|
341 |
MaxWritePoolSize = Int32.MaxValue, |
|
342 |
MessageVersion = System.ServiceModel.Channels.MessageVersion.Soap12WSAddressing10, |
|
343 |
WriteEncoding = System.Text.Encoding.UTF8, |
|
344 |
ReaderQuotas = new System.Xml.XmlDictionaryReaderQuotas |
|
345 |
{ |
|
346 |
MaxArrayLength = Int32.MaxValue, |
|
347 |
MaxBytesPerRead = Int32.MaxValue, |
|
348 |
MaxDepth = Int32.MaxValue, |
|
349 |
MaxNameTableCharCount = Int32.MaxValue, |
|
350 |
MaxStringContentLength = Int32.MaxValue |
|
351 |
} |
|
352 |
}; |
|
353 |
//reliableSession.Ordered = true; // Set other properties as needed |
|
354 |
customBinding.Elements.Add(reliableSession); |
|
355 |
//customBinding.Elements.Add(messageEncoding); |
|
356 |
//customBinding.Elements.Add(encoding); |
|
357 |
customBinding.Elements.Add(httpTranport); |
|
308 | 358 |
|
309 | 359 |
_binding = customBinding; |
310 | 360 |
#endregion |
... | ... | |
333 | 383 |
//basicHttpBinding.CreateBindingElements().Add(reliableSession); |
334 | 384 |
|
335 | 385 |
//_binding = basicHttpBinding; |
336 |
#endregion |
|
386 |
#endregion
|
|
337 | 387 |
#endif |
338 | 388 |
|
339 | 389 |
//Support.SetLicense(); |
... | ... | |
366 | 416 |
#if BASIC_BINDING |
367 | 417 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", BaseAddress)); |
368 | 418 |
#elif CUSTOM_BINDING |
369 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc/GZIP", BaseAddress)); |
|
419 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", BaseAddress)); |
|
420 |
|
|
370 | 421 |
#else |
371 | 422 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", BaseAddress)); |
372 | 423 |
#endif |
... | ... | |
470 | 521 |
|
471 | 522 |
for (int i = 1; i < ISplashMessage.SplashMessageCnt; i++) |
472 | 523 |
{ |
473 |
await Task.Delay(3);
|
|
524 |
await Task.Delay(1);
|
|
474 | 525 |
await splashScreen.Dispatcher.InvokeAsync(() => splashScreen.Progress = i * value); |
475 | 526 |
} |
476 | 527 |
|
내보내기 Unified diff