예제 #1
0
 /// <summary>
 /// Create a new object that represent an Athena log server.
 /// </summary>
 /// <param name="address">The address of the server.</param>
 public LogServerModel(IPAddress address)
 {
     m_ServerAddress       = address;
     m_Client              = new AthenaWcfClient(address);
     m_IsConnected         = true;
     m_LastReadMessageDate = null;
 }
예제 #2
0
 /// <summary>
 /// Initializes the log channel.
 /// </summary>
 /// <param name="settings">The object that contains channel settings.</param>
 public override void Initialize(DataStore settings)
 {
     m_WcfClient = new AthenaWcfClient(IPAddress.Parse(settings.TryGet <string>(c_ServerIpAddressKey, "127.0.0.1")));
     m_WcfClient.CommunicationTimeout = settings.TryGet <int>(c_ServerCommunicationTimeout, m_WcfClient.CommunicationTimeout);
 }