Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WcfLogReceiverClientFacade"/> class.
 /// </summary>
 /// <param name="useOneWay">Whether to use the one way or two way WCF client.</param>
 public WcfLogReceiverClientFacade(bool useOneWay)
 {
     m_useOneWay = useOneWay;
     if (useOneWay)
     {
         m_twoWayClient = null;
         m_oneWayClient = new WcfLogReceiverOneWayClient();
         HookOneWayEvents();
     }
     else
     {
         m_twoWayClient = new WcfLogReceiverClient();
         m_oneWayClient = null;
         HookTwoWayEvents();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WcfLogReceiverClientFacade"/> class.
 /// </summary>
 /// <param name="useOneWay">Whether to use the one way or two way WCF client.</param>
 /// <param name="endpointConfigurationName">Name of the endpoint configuration.</param>
 public WcfLogReceiverClientFacade(bool useOneWay, string endpointConfigurationName)
 {
     m_useOneWay = useOneWay;
     if (useOneWay)
     {
         m_twoWayClient = null;
         m_oneWayClient = new WcfLogReceiverOneWayClient(endpointConfigurationName);
         HookOneWayEvents();
     }
     else
     {
         m_twoWayClient = new WcfLogReceiverClient(endpointConfigurationName);
         m_oneWayClient = null;
         HookTwoWayEvents();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WcfLogReceiverClientFacade"/> class.
 /// </summary>
 /// <param name="useOneWay">Whether to use the one way or two way WCF client.</param>
 /// <param name="binding">The binding.</param>
 /// <param name="remoteAddress">The remote address.</param>
 public WcfLogReceiverClientFacade(bool useOneWay, Binding binding, EndpointAddress remoteAddress)
 {
     m_useOneWay = useOneWay;
     if (useOneWay)
     {
         m_twoWayClient = null;
         m_oneWayClient = new WcfLogReceiverOneWayClient(binding, remoteAddress);
         HookOneWayEvents();
     }
     else
     {
         m_twoWayClient = new WcfLogReceiverClient(binding, remoteAddress);
         m_oneWayClient = null;
         HookTwoWayEvents();
     }
 }