public OperationResult <UserExt> Connect()
 {
     try
     {
         context          = new InstanceContext(relationsCallback);
         factory          = new DuplexChannelFactory <IRelations>(context, connectionString);
         factory.Faulted += Factory_Faulted;
         channel          = factory.CreateChannel();
         var res = channel.Authentication(token);
         return(res);
     }
     catch (CommunicationException ex)
     {
         return(new OperationResult <UserExt>(null, false, "Connection error"));
     }
 }
 private void ReloadChannel()
 {
     //channel = factory.CreateChannel();
     Factory_Faulted(this, EventArgs.Empty);
     channel.Authentication(token);
 }