Example #1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public Logger()
 {
     Level = LogLevel.Warn;
     m_builder = new MessageBuilder();
 }
Example #2
0
 /// <summary>
 /// Constructor with a socket
 /// </summary>
 /// <param name="socket"></param>
 public RpcConnection(WebSocket socket)
 {
     m_socket = socket;
     m_authenticated = false;
     // Get references to the core components we need
     m_builder = new MessageBuilder();
     m_messagebus = Locator.Current.GetService<IMessageBus>();
     m_mot = Locator.Current.GetService<MasterObjectTable>();
     // Listen for incoming messages
     m_socket.DataReceived += OnDataReceived;
 }