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


C# ActiveUp类代码示例

本文整理汇总了C#中ActiveUp的典型用法代码示例。如果您正苦于以下问题:C# ActiveUp类的具体用法?C# ActiveUp怎么用?C# ActiveUp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: OnRetrieveNewMessage

        public void OnRetrieveNewMessage(MailQueueItem account,
            ActiveUp.Net.Mail.Message message,
            int folder_id,
            string uidl,
            string md5_hash,
            bool has_parse_error,
            bool unread,
            int[] tags_ids)
        {
            MailMessageItem message_item;
            if (_mailBoxManager.MailReceive(account.Account, message, folder_id, uidl, md5_hash, has_parse_error, unread, tags_ids, out message_item) < 1)
                throw new Exception("MailReceive() returned id < 1;");

            if (message_item == null) return;

            foreach (var handler in _messageHandlers)
            {
                try
                {
                    handler.HandleRetrievedMessage(account.Account, message, message_item, folder_id, uidl, md5_hash, unread, tags_ids);
                }
                catch (Exception ex)
                {
                    _log.Error(ex, "MailItemManager::OnRetrieveNewMessage");
                }
            }
        }
开发者ID:haoasqui,项目名称:ONLYOFFICE-Server,代码行数:27,代码来源:MailItemManager.cs

示例2: NewsGroup

        internal NewsGroup(string name, int firstArticle, int lastArticle, bool postingAllowed, ActiveUp.Net.Mail.NntpClient nntp)
		{
			this._name = name;
			this._firstArticle = firstArticle;
			this._lastArticle = lastArticle;
			this._postingAllowed = postingAllowed;
			this._nntp = nntp;
        }
开发者ID:haoasqui,项目名称:MailSystem.NET,代码行数:8,代码来源:NewsGroup.cs

示例3: OnRetrieveNewMessage

 public void OnRetrieveNewMessage(MailQueueItem account,
     ActiveUp.Net.Mail.Message message,
     int folder_id,
     string uidl,
     string md5_hash,
     bool unread,
     int[] tags_ids)
 {
     if (mailBoxManager.MailReceive(account.Account, message, folder_id, uidl, md5_hash, unread, tags_ids) < 1)
         throw new Exception("MailReceive() returned id < 1;");
 }
开发者ID:Inzaghi2012,项目名称:teamlab.v7.5,代码行数:11,代码来源:MailItemManager.cs

示例4: PutChild

 private void PutChild(ActiveUp.Net.Mail.Mailbox box)
 {
     foreach (ActiveUp.Net.Mail.Mailbox mailbox in box.SubMailboxes)
     {
         if (mailbox.Name.Replace(box.Name + "/\uFFFD", "\uFFFD").IndexOf("/\uFFFD") == -1)
         {
             ActiveUp.WebControls.TreeNode treeNode = tree.FindNode(box.Name).AddNode(mailbox.Name, "<span class=\"foldername\">\uFFFD" + mailbox.ShortName + "</span>\uFFFD", System.String.Empty);
             treeNode.Click += new System.EventHandler(Navigate);
             PutChild(mailbox);
         }
     }
 }
开发者ID:JBTech,项目名称:MailSystem.NET,代码行数:12,代码来源:FoldersTree.ascx.cs

示例5: FormatAddress

        private string FormatAddress(ActiveUp.Net.Mail.Address address)
        {
            string result = string.Empty;

            if (address.Name.TrimEnd() != string.Empty)
            {
                result = string.Format("{0} ({1})",address.Name,address.Email);
            }
            else
            {
                result = address.Email;
            }

            return result;
        }
开发者ID:JBTech,项目名称:MailSystem.NET,代码行数:15,代码来源:MessageForm.cs

示例6: Add

 /// <summary>
 /// 
 /// </summary>
 /// <param name="header">The Header to be added in the collection.</param>
 public void Add(ActiveUp.Net.Mail.Header header)
 {
     this.List.Add(header);
 }
开发者ID:haoasqui,项目名称:ONLYOFFICE-Server,代码行数:8,代码来源:HeaderCollection.cs

示例7: Add

		/// <summary>
		/// Adds a Message object to the collection. Can be useful to use the GetBindableTable() method with message from different sources.
		/// </summary>
		/// <param name="msg"></param>
		public void Add(ActiveUp.Net.Mail.Message msg)
		{
			this.List.Add(msg);
		}
开发者ID:JBTech,项目名称:MailSystem.NET,代码行数:8,代码来源:MessageCollection.cs

示例8: Authenticate

 /// <summary>
 /// Authenticates using the given SASL mechanism.
 /// </summary>
 /// <param name="username">Username to authenticate as.</param>
 /// <param name="password">Password.</param>
 /// <param name="mechanism">SASL mechanism to be used.</param>
 /// <returns>The server's response.</returns>
 /// <example>
 /// <code>
 /// C#
 /// 
 /// Imap4Client imap = new Imap4Client();
 /// imap.Connect("mail.myhost.com");
 /// imap.Authenticate("user","pass",SASLMechanism.CramMd5);
 /// imap.Disconnect();
 /// 
 /// VB.NET
 /// 
 /// Dim imap As New Imap4Client
 /// imap.Connect("mail.myhost.com")
 /// imap.Authenticate("user","pass",SASLMechanism.CramMd5)
 /// imap.Disconnect()
 /// 
 /// JScript.NET
 /// 
 /// var imap:Imap4Client = new Imap4Client();
 /// imap.Connect("mail.myhost.com");
 /// imap.Authenticate("user","pass",SASLMechanism.CramMd5);
 /// imap.Disconnect();
 /// </code>
 /// </example>
 public override string Authenticate(string username, string password, ActiveUp.Net.Mail.SaslMechanism mechanism)
 {
     switch (mechanism)
     {
         case ActiveUp.Net.Mail.SaslMechanism.CramMd5:
             return this._CramMd5(username, password);
         case ActiveUp.Net.Mail.SaslMechanism.Login:
             return this._Login(username, password);
     }
     return string.Empty;
 }
开发者ID:vipwan,项目名称:CommunityServer,代码行数:42,代码来源:Imap4Client.cs

示例9: ConnectSsl

 public string ConnectSsl(System.Net.IPAddress[] addresses, int port,
                          ActiveUp.Net.Security.SslHandShake sslHandShake)
 {
     this.OnConnecting();
     base.Connect(addresses, port);
     this.DoSslHandShake(sslHandShake);
     string response = this.ReadLine();
     this.ServerCapabilities = this.Command("capability");
     this.OnConnected(new ActiveUp.Net.Mail.ConnectedEventArgs(response));
     return response;
 }
开发者ID:vipwan,项目名称:CommunityServer,代码行数:11,代码来源:Imap4Client.cs

示例10: BeginConnectSsl

 public IAsyncResult BeginConnectSsl(string host, ActiveUp.Net.Security.SslHandShake sslHandShake,
                                     AsyncCallback callback)
 {
     return this.BeginConnectSsl(host, 993, sslHandShake, callback);
 }
开发者ID:vipwan,项目名称:CommunityServer,代码行数:5,代码来源:Imap4Client.cs

示例11: OnNewMessageReceived

 internal void OnNewMessageReceived(ActiveUp.Net.Mail.NewMessageReceivedEventArgs e)
 {
     if (NewMessageReceived != null) NewMessageReceived(this, e);
     ActiveUp.Net.Mail.Logger.AddEntry("New message received : " + e.MessageCount + "...", 2);
 }
开发者ID:vipwan,项目名称:CommunityServer,代码行数:5,代码来源:Imap4Client.cs

示例12: ConnectSsl

 public string ConnectSsl(System.Net.IPAddress addr, int port, ActiveUp.Net.Security.SslHandShake sslHandShake)
 {
     this.OnConnecting();
     base.Connect(addr, port);
     this.DoSslHandShake(sslHandShake);
     string response = this.ReadLine();
     this.OnConnected(new ActiveUp.Net.Mail.ConnectedEventArgs(response));
     return response;
 }
开发者ID:haoasqui,项目名称:MailSystem.NET,代码行数:9,代码来源:NntpClient.cs

示例13: DoSslHandShake

 private void DoSslHandShake(ActiveUp.Net.Security.SslHandShake sslHandShake)
 {
     this._sslStream = new System.Net.Security.SslStream(base.GetStream(), false, sslHandShake.ServerCertificateValidationCallback, sslHandShake.ClientCertificateSelectionCallback);
     this._sslStream.AuthenticateAsClient(sslHandShake.HostName, sslHandShake.ClientCertificates, sslHandShake.SslProtocol, sslHandShake.CheckRevocation);
 }
开发者ID:haoasqui,项目名称:MailSystem.NET,代码行数:5,代码来源:NntpClient.cs

示例14: OnHeaderRetrieving

		internal void OnHeaderRetrieving(ActiveUp.Net.Mail.HeaderRetrievingEventArgs e)
		{
			if(HeaderRetrieving!=null) HeaderRetrieving(this,e);
			ActiveUp.Net.Mail.Logger.AddEntry("Retrieving Header at index "+e.MessageIndex+" out of "+e.TotalCount+"...",2);
		}
开发者ID:haoasqui,项目名称:MailSystem.NET,代码行数:5,代码来源:NntpClient.cs

示例15: ConnectSsl

 public string ConnectSsl(string host, int port, ActiveUp.Net.Security.SslHandShake sslHandShake)
 {
     this.host = host;
     this.OnConnecting();
     base.Connect(host, port);
     this.DoSslHandShake(sslHandShake);
     string response = this.ReadLine();
     this.OnConnected(new ActiveUp.Net.Mail.ConnectedEventArgs(response));
     return response;
 }
开发者ID:vipwan,项目名称:CommunityServer,代码行数:10,代码来源:Pop3Client.cs


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