コード例 #1
0
        /// <summary>
        /// EndListPersistentRequestsEventArgs Constructor
        /// </summary>
        /// <param name="parsed">a simple MessageParse</param>
        internal EndListPersistentRequestsEventArgs(MessageParser parsed)
        {
#if DEBUG
            FCP2Protocol.ArgsDebug(this, parsed);
#endif

#if DEBUG
            parsed.PrintAccessCount();
#endif
        }
コード例 #2
0
        /// <summary>
        /// PersistentPutDirEventArgs Constructor
        /// </summary>
        /// <param name="parsed">a simple MessageParse</param>
        internal PersistentPutDirEventArgs(MessageParser parsed)
        {
#if DEBUG
            FCP2Protocol.ArgsDebug(this, parsed);
#endif

#if DEBUG
            parsed.PrintAccessCount();
#endif
        }
コード例 #3
0
        internal SendingToNetworkEventArgs(MessageParser parsed)
        {
#if DEBUG
            FCP2Protocol.ArgsDebug(this, parsed);
#endif

#if DEBUG
            parsed.PrintAccessCount();
#endif
        }
        /// <summary>
        /// CloseConnectionDuplicateClientNameEventArgs Constructor
        /// </summary>
        /// <param name="parsed">a simple MessageParse</param>
        internal CloseConnectionDuplicateClientNameEventArgs(MessageParser parsed)
        {
#if DEBUG
            FCP2Protocol.ArgsDebug(this, parsed);
#endif

#if DEBUG
            parsed.PrintAccessCount();
#endif
        }
コード例 #5
0
        /// <summary>
        /// ConfigDataEventArgs Constructor
        /// </summary>
        /// <param name="parsed">a simple MessageParse</param>
        internal ConfigDataEventArgs(MessageParser parsed)
        {
#if DEBUG
            FCP2Protocol.ArgsDebug(this, parsed);
#endif

            Config = parsed;

            /* Too much to parse by hand -
             * we would duplicate most of the nodes 
             * datastructures for configuration 
             * Therfore we expose the MessageParser directly...
             * 
             * C# 4.0 - dynamic type could be the solution!
             * * * * * */

#if DEBUG
            parsed.PrintAccessCount();
#endif

        }
コード例 #6
0
        /// <summary>
        /// FCPPluginReplyEventArgs Constructor
        /// </summary>
        /// <param name="parsed">a simple MessageParse</param>
        internal FCPPluginReplyEventArgs(dynamic parsed)
        {
#if DEBUG
            FCP2Protocol.ArgsDebug(this, parsed);
#endif

            PluginName = parsed.PluginName;
            
            DataLength = parsed.DataLength;
            if (parsed.DataLength.LastConversationSucessfull)
            {
                Data = null; /* TODO: Similar to AllData*/
                throw new NotImplementedException("Unclear format");

                /* TODO: Data? EndMessage? */
            }
            Identifier = parsed.Identifier;

            Replies = parsed;

#if DEBUG
            parsed.PrintAccessCount();
#endif
        }
コード例 #7
0
        public MessageParserSubElement(MessageParser messageParser, string element)
        {
            _parentParser = messageParser;
            _name = element;

        }
コード例 #8
0
 public MessageParserSubElement(MessageParser messageParser, string element)
 {
     _parentParser = messageParser;
     _name         = element;
 }