当前位置: 首页>>代码示例>>C#>>正文


C# UserInfo.WriteLine方法代码示例

本文整理汇总了C#中UserInfo.WriteLine方法的典型用法代码示例。如果您正苦于以下问题:C# UserInfo.WriteLine方法的具体用法?C# UserInfo.WriteLine怎么用?C# UserInfo.WriteLine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UserInfo的用法示例。


在下文中一共展示了UserInfo.WriteLine方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SendEndOfNamesReply

        /// <summary>
        /// Reply Code 366
        /// </summary>
        /// <param name="info"></param>
        /// <param name="chan"></param>
        public void SendEndOfNamesReply(UserInfo info, ChannelInfo chan)
        {
            BuildMessageHeader(info, ReplyCode.EndOfNames);

            response.Append(" ");
            response.Append(chan.Name);
            response.Append(" :End of NAMES list");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:15,代码来源:ServerReplies.cs

示例2: SendNoChannelModes

        /// <summary>
        /// Reply Code 477
        /// </summary>
        /// <param name="info"></param>
        /// <param name="chan"></param>
        public void SendNoChannelModes(UserInfo info, ChannelInfo chan)
        {
            BuildMessageHeader(info, ReplyCode.ErrorNoChannelModes);

            response.Append(" ");
            response.Append(chan.Name);
            response.Append(" :Channel doesn't support modes");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:15,代码来源:ServerReplies.cs

示例3: SendNoNicknameGiven

        /// <summary>
        /// Reply Code 431
        /// </summary>
        /// <param name="info"></param>
        public void SendNoNicknameGiven(UserInfo info)
        {
            BuildMessageHeader(info, ReplyCode.ErrorNoNicknameGiven);

            response.Append(" :No nickname given");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:12,代码来源:ServerReplies.cs

示例4: SendMyInfo

        /// <summary>
        /// Reply Code 004
        /// </summary>
        /// <param name="info"></param>
        public void SendMyInfo(UserInfo info)
        {
            BuildMessageHeader(info, ReplyCode.MyInfo);

            response.Append(" :");
            response.Append(ircDaemon.Options.ServerName);
            response.Append(" ");
            response.Append("ircD.Net.");
            response.Append(System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString());
            response.Append(" ");
            response.Append(ircDaemon.SupportedUserModes.ToString());
            response.Append(" ");
            response.Append(ircDaemon.SupportedRanks.ToString() + ircDaemon.SupportedChannelModes);

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:20,代码来源:ServerReplies.cs

示例5: SendNeedMoreParams

        /// <summary>
        /// Numeric Reply 461
        /// </summary>
        /// <param name="info"></param>
        public void SendNeedMoreParams(UserInfo info)
        {
            BuildMessageHeader(info, ReplyCode.ErrorNeedMoreParams);

            response.Append(" :Not enough parameters");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:12,代码来源:ServerReplies.cs

示例6: SendListUserUnknown

        /// <summary>
        /// Reply Code 253
        /// </summary>
        /// <param name="info"></param>
        public void SendListUserUnknown(UserInfo info)
        {
            BuildMessageHeader(info, ReplyCode.ListUserUnknown);

            response.Append(ircDaemon.Stats.UnknowConnectionCount);
            response.Append(" :unknown connection(s)");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:13,代码来源:ServerReplies.cs

示例7: SendMotdEnd

        /// <summary>
        /// Reply Code 376
        /// </summary>
        /// <param name="info"></param>
        public void SendMotdEnd(UserInfo info)
        {
            BuildMessageHeader(info, ReplyCode.EndOfMotd);

            response.Append(" :End of MOTD command");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:12,代码来源:ServerReplies.cs

示例8: SendInviteList

        /// <summary>
        /// Reply Code 346
        /// </summary>
        /// <param name="info"></param>
        /// <param name="chan"></param>
        /// <param name="mask"></param>
        public void SendInviteList(UserInfo info, ChannelInfo chan, string mask)
        {
            BuildMessageHeader(info, ReplyCode.InviteList);

            response.Append(" ");
            response.Append(chan.Name);
            response.Append(" ");
            response.Append(mask);

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:17,代码来源:ServerReplies.cs

示例9: SendInviteOnlyChannel

        /// <summary>
        /// Reply Code 473
        /// </summary>
        /// <param name="info"></param>
        /// <param name="chan"></param>
        public void SendInviteOnlyChannel(UserInfo info, ChannelInfo chan)
        {
            BuildMessageHeader(info, ReplyCode.ErrorInviteOnlyChannel);

            response.Append(" ");
            response.Append(chan.Name);
            response.Append(" :Cannot join channel (+i)");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:15,代码来源:ServerReplies.cs

示例10: SendErroneousNickname

        /// <summary>
        /// Reply Code 432
        /// </summary>
        /// <param name="info"></param>
        /// <param name="nick"></param>
        public void SendErroneousNickname(UserInfo info, string nick)
        {
            BuildMessageHeader(info, ReplyCode.ErrorErroneusNickname);

            response.Append(" :Erroneous nickname");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:13,代码来源:ServerReplies.cs

示例11: SendInfo

        /// <summary>
        /// Reply Code 371
        /// </summary>
        /// <param name="info"></param>
        public void SendInfo(UserInfo info)
        {
            BuildMessageHeader(info, ReplyCode.Info);

            response.Append(" :");
            response.Append("TODO");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:13,代码来源:ServerReplies.cs

示例12: SendEndOfWhoIs

        /// <summary>
        /// Reply 318
        /// </summary>
        /// <param name="info"></param>
        /// <param name="who"></param>
        public void SendEndOfWhoIs(UserInfo info, UserInfo who)
        {
            BuildMessageHeader(info, ReplyCode.EndOfWhoIs);

            response.Append(" ");
            response.Append(who.Nick);
            response.Append(" ");
            response.Append(" :End of WHOIS list");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:16,代码来源:ServerReplies.cs

示例13: SendEndOfWho

        /// <summary>
        /// Reply 315
        /// </summary>
        /// <param name="info"></param>
        /// <param name="mask"></param>
        public void SendEndOfWho(UserInfo info, string mask)
        {
            BuildMessageHeader(info, ReplyCode.EndOfWho);

            response.Append(" ");
            response.Append(mask);
            response.Append(" :End of /WHO list.");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:15,代码来源:ServerReplies.cs

示例14: SendEndOfStats

        /// <summary>
        /// Reply Code 219
        /// </summary>
        /// <param name="info"></param>
        /// <param name="query"></param>
        public void SendEndOfStats(UserInfo info, string query)
        {
            BuildMessageHeader(info, ReplyCode.EndOfStats);

            response.Append(" ");
            response.Append(query);
            response.Append(" :End of STATS report");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:15,代码来源:ServerReplies.cs

示例15: SendListUserMe

        /// <summary>
        /// Reply Code 255
        /// </summary>
        /// <param name="info"></param>
        public void SendListUserMe(UserInfo info)
        {
            BuildMessageHeader(info, ReplyCode.ListUserMe);

            response.Append(" :I have ");
            response.Append(ircDaemon.Stats.ClientCount);
            response.Append(" clients and ");
            response.Append(ircDaemon.Stats.ServerCount);
            response.Append(" servers");

            info.WriteLine(response);
        }
开发者ID:autocar,项目名称:ircddotnet,代码行数:16,代码来源:ServerReplies.cs


注:本文中的UserInfo.WriteLine方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。