Example #1
0
        public ProtocolManagerHookCommand(ProtocolManagerBase protocolManager,
                                          ChatModel chat,
                                          string commandCharacter)
        {
            if (protocolManager == null) {
                throw new ArgumentNullException("protocolManager");
            }

            ProtocolManager = protocolManager;
            Chat = chat;
            CommandCharacter = commandCharacter;
            CommandName = "ProtocolManager.Command";
        }
Example #2
0
        public ProtocolManagerHookCommand(ProtocolManagerBase protocolManager,
                                          ChatModel chat,
                                          string commandCharacter)
        {
            if (protocolManager == null)
            {
                throw new ArgumentNullException("protocolManager");
            }

            ProtocolManager  = protocolManager;
            Chat             = chat;
            CommandCharacter = commandCharacter;
            CommandName      = "ProtocolManager.Command";
        }
        public ProtocolManagerHookEnvironment(ProtocolManagerBase protocolManager)
        {
            if (protocolManager == null) {
                throw new ArgumentNullException("protocolManager");
            }

            this["PROTOCOL_MANAGER_PROTOCOL"] = protocolManager.Protocol;
            this["PROTOCOL_MANAGER_NETWORK"] = protocolManager.NetworkID;
            this["PROTOCOL_MANAGER_HOST"] = protocolManager.Host;
            this["PROTOCOL_MANAGER_PORT"] = protocolManager.Port.ToString();
            if (protocolManager.Me != null) {
                this["PROTOCOL_MANAGER_ME_ID"] = protocolManager.Me.ID;
            }
        }
Example #4
0
        public ProtocolManagerHookEnvironment(ProtocolManagerBase protocolManager)
        {
            if (protocolManager == null)
            {
                throw new ArgumentNullException("protocolManager");
            }

            this["PROTOCOL_MANAGER_PROTOCOL"] = protocolManager.Protocol;
            this["PROTOCOL_MANAGER_NETWORK"]  = protocolManager.NetworkID;
            this["PROTOCOL_MANAGER_HOST"]     = protocolManager.Host;
            this["PROTOCOL_MANAGER_PORT"]     = protocolManager.Port.ToString();
            if (protocolManager.Me != null)
            {
                this["PROTOCOL_MANAGER_ME_ID"] = protocolManager.Me.ID;
            }
        }