Пример #1
0
        private static void init_wcf()
        {
            var channelFatory = new ChannelFactory <IWcfBytes>(api.Binding);

            _wcf = channelFatory.CreateChannel(new EndpointAddress(api.Uri));
            //_wcf.Execute(new byte[] {});//WCF uses much of runtime upon start, so warup first call
        }
Пример #2
0
 private static void init_wcf()
 {
     var channelFatory = new ChannelFactory<IWcfBytes>(api.Binding);
     _wcf = channelFatory.CreateChannel(new EndpointAddress(api.Uri));
     //_wcf.Execute(new byte[] {});//WCF uses much of runtime upon start, so warup first call
 }