private void ValidateChannelSettings(ChannelSettings settings)
 {
     if (settings == null)
     {
         throw new InvalidChannelSettingsException("Channel settings cannot be null");
     }
     if (settings is IpcChannelSettings)
     {
         return;
     }
     if (settings is TcpChannelSettings)
     {
         return;
     }
     //if (settings is HttpChannelSetting)
     //{
     //  return;
     //}
     throw new InvalidChannelSettingsException(string.Format("Type {0} is not valid channel settings", settings.GetType()));
 }
 public ConnectionSettings(ChannelSettings channelSettings, string machineAddress, Guid objectUid)
 {
     ChannelSettings = channelSettings;
     MachineAddress  = machineAddress;
     ObjectUid       = objectUid;
 }