The Message Event Handler class. Manages all the events for a mycroft client.
Пример #1
0
        /// <summary>
        /// Constructor for a client
        /// </summary>
        public Client(string manifestPath)
        {
            var textStreamReader = new StreamReader(manifestPath);
            manifest = textStreamReader.ReadToEnd();
            var jsobj = ser.Deserialize<dynamic>(manifest);
            InstanceId = jsobj["instanceId"];
            handler = new MessageEventHandler();

        }
Пример #2
0
        /// <summary>
        /// Constructor for a client
        /// </summary>
        public Client(string manifestPath)
        {
            var textStreamReader = new StreamReader(manifestPath);

            manifest = textStreamReader.ReadToEnd();
            var jsobj = ser.Deserialize <dynamic>(manifest);

            InstanceId = jsobj["instanceId"];
            handler    = new MessageEventHandler();
        }