Beispiel #1
0
        public SessionControlProtocol11()
        {
#warning Overrides static field (not thread safe) with each new instance??? Seems very wrong.

            MessageHandlers[AlertTemplate]       = AlertHandler;
            MessageHandlers[TemplateDefinition]  = new ProtocolDefinitionSessionMessageHandler(this);
            MessageHandlers[TemplateDeclaration] = new ProtocolDeclarationSessionMessageHandler(this);
        }
        public SessionControlProtocol11()
        {
#warning Overrides static field (not thread safe) with each new instance??? Seems very wrong.

            MessageHandlers[AlertTemplate] = AlertHandler;
            MessageHandlers[TemplateDefinition] = new ProtocolDefinitionSessionMessageHandler(this);
            MessageHandlers[TemplateDeclaration] = new ProtocolDeclarationSessionMessageHandler(this);
        }