Exemplo n.º 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";
        }
Exemplo n.º 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";
        }
Exemplo n.º 3
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;
            }
        }
Exemplo n.º 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;
            }
        }