Exemplo n.º 1
0
 private void EnsureClient()
 {
     if (m_WsDualClient == null || m_WsDualClient.Factory.State != CommunicationState.Opened)
     {
         m_WsDualClient = new WsDualClient(MyClients.CurrentBinding, this);
         client = m_WsDualClient.ClientConnector;
     }
 }
Exemplo n.º 2
0
 private void EnsureClientConnector()
 {
     if (NeedRefresh || m_WsDualClient == null || m_WsDualClient.Factory.State != CommunicationState.Opened)
     {
         NeedRefresh = false;
         m_WsDualClient = new WsDualClient(MyClients.CurrentBinding);
     }
 }