프로젝트

일반

사용자정보

개정판 a8aec13a

IDa8aec13a424a2ecf8a54a3b1597455d76f6b7a72
상위 92c9cab8
하위 3b938959

김태성이(가) 11달 전에 추가함

issue #000000 NullToCollapsedConverter 추가

Change-Id: I15c20c65d68a1b004959529e28d023e60c59fbd5

차이점 보기:

KCOM/App.xaml.cs
281 281
                #region custombinding
282 282
                var customBinding = new System.ServiceModel.Channels.CustomBinding()
283 283
                {
284
                    OpenTimeout = new TimeSpan(0, 15, 0),
285
                    ReceiveTimeout = new TimeSpan(0, 15, 0),
286
                    CloseTimeout = new TimeSpan(0, 15, 0),
287
                    SendTimeout = new TimeSpan(0, 15, 0),
284
                    OpenTimeout = new TimeSpan(0, 30, 0),
285
                    ReceiveTimeout = new TimeSpan(0, 30, 0),
286
                    CloseTimeout = new TimeSpan(0, 30, 0),
287
                    SendTimeout = new TimeSpan(0, 30, 0),
288 288
                };
289 289

  
290 290
                var messageEncoding = new WcfExtensions.ServiceModel.Channels.CompressionBindingElement();
291
                messageEncoding.Level = WcfExtensions.ServiceModel.Channels.CompressionLevel.Fast;
291
                messageEncoding.Level = WcfExtensions.ServiceModel.Channels.CompressionLevel.Maximum;
292 292

  
293 293
                var httpTranport = new System.ServiceModel.Channels.HttpTransportBindingElement
294 294
                {
295 295
                    MaxBufferPoolSize = Int32.MaxValue,
296 296
                    MaxBufferSize = Int32.MaxValue,
297 297
                    MaxReceivedMessageSize = Int32.MaxValue,
298
                    RequestInitializationTimeout = new TimeSpan(0, 10, 0),
298
                    RequestInitializationTimeout = new TimeSpan(0, 30, 0),
299 299
                    //UseDefaultWebProxy = false,
300 300
                    //ProxyAddress = new Uri("Http://127.0.0.1:8888")
301 301
                };
......
312 312
#else
313 313

  
314 314
                #region 기본 binding
315
                BasicHttpBinding basicHttpBinding = new BasicHttpBinding(BasicHttpSecurityMode.None);
316
                basicHttpBinding.Security = new BasicHttpSecurity { Transport = new HttpTransportSecurity { ClientCredentialType = HttpClientCredentialType.None, ProxyCredentialType = HttpProxyCredentialType.None }, Mode = BasicHttpSecurityMode.None, Message = new BasicHttpMessageSecurity { AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256, ClientCredentialType = BasicHttpMessageCredentialType.UserName } };
317
                basicHttpBinding.MaxBufferSize = 2147483647;
318
                basicHttpBinding.MaxBufferPoolSize = 2147483647;
319
                basicHttpBinding.MaxReceivedMessageSize = 2147483647;
320
                basicHttpBinding.OpenTimeout = new TimeSpan(4, 30, 0);
321
                basicHttpBinding.ReceiveTimeout = new TimeSpan(4, 30, 0);
322
                basicHttpBinding.CloseTimeout = new TimeSpan(4, 30, 0);
323
                basicHttpBinding.SendTimeout = new TimeSpan(4, 30, 0);
324
                basicHttpBinding.TextEncoding = System.Text.Encoding.UTF8;
325
                basicHttpBinding.TransferMode = TransferMode.Buffered;
326
                basicHttpBinding.MessageEncoding = WSMessageEncoding.Text;
327
                basicHttpBinding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
315
                //BasicHttpBinding basicHttpBinding = new BasicHttpBinding(BasicHttpSecurityMode.None);
316
                //basicHttpBinding.Security = new BasicHttpSecurity { Transport = new HttpTransportSecurity { ClientCredentialType = HttpClientCredentialType.None, ProxyCredentialType = HttpProxyCredentialType.None }, Mode = BasicHttpSecurityMode.None, Message = new BasicHttpMessageSecurity { AlgorithmSuite = System.ServiceModel.Security.SecurityAlgorithmSuite.Basic256, ClientCredentialType = BasicHttpMessageCredentialType.UserName } };
317
                //basicHttpBinding.MaxBufferSize = 2147483647;
318
                //basicHttpBinding.MaxBufferPoolSize = 2147483647;
319
                //basicHttpBinding.MaxReceivedMessageSize = 2147483647;
320
                //basicHttpBinding.OpenTimeout = new TimeSpan(4, 30, 0);
321
                //basicHttpBinding.ReceiveTimeout = new TimeSpan(4, 30, 0);
322
                //basicHttpBinding.CloseTimeout = new TimeSpan(4, 30, 0);
323
                //basicHttpBinding.SendTimeout = new TimeSpan(4, 30, 0);
324
                //basicHttpBinding.TextEncoding = System.Text.Encoding.UTF8;
325
                //basicHttpBinding.TransferMode = TransferMode.Buffered;
326
                //basicHttpBinding.MessageEncoding = WSMessageEncoding.Text;
327
                //basicHttpBinding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
328 328

  
329 329

  
330
                System.ServiceModel.Channels.ReliableSessionBindingElement reliableSession = new System.ServiceModel.Channels.ReliableSessionBindingElement();
331
                reliableSession.Ordered = true;
332
                reliableSession.MaxRetryCount = 3;
333
                basicHttpBinding.CreateBindingElements().Add(reliableSession);
330
                //System.ServiceModel.Channels.ReliableSessionBindingElement reliableSession = new System.ServiceModel.Channels.ReliableSessionBindingElement();
331
                //reliableSession.Ordered = true;
332
                //reliableSession.MaxRetryCount = 3;
333
                //basicHttpBinding.CreateBindingElements().Add(reliableSession);
334 334

  
335
                _binding = basicHttpBinding;
335
                //_binding = basicHttpBinding;
336 336
  #endregion
337 337
#endif
338 338

  
......
366 366
#if BASIC_BINDING
367 367
                _EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", BaseAddress));
368 368
#elif CUSTOM_BINDING
369
                _EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc/gzip", BaseAddress));
369
                _EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc/GZIP", BaseAddress));
370 370
#else
371 371
                _EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", BaseAddress));
372 372
#endif

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)