private void CreateNotesProxy()
 {
     if (null == m_notesProxy)
     {
         m_notesProxy = new NotesProxy.ProxyClass();
     }
 }
        public void TearDown()
        {
            if (null == m_notesProxy)
                return;

            Marshal.ReleaseComObject(m_notesProxy);
            m_notesProxy = null;
        }
Exemple #3
0
		public NotesMailProxy(object mailItem)
		{
			m_notesProxy = mailItem as NotesProxy.IProxy;
			m_notesToRecipientsProxy = new NotesRecipientsProxy(m_notesProxy.GetResolvedRecipientsTypeToken);
			m_notesCcRecipientsProxy = new NotesRecipientsProxy(m_notesProxy.GetResolvedRecipientsTypeToken);
			m_notesBccRecipientsProxy = new NotesRecipientsProxy(m_notesProxy.GetResolvedRecipientsTypeToken);
			m_notesAttachmentsProxy = new NotesAttachmentsProxy(m_notesProxy);

			m_bIsValid = true;
		}
		public ServerProfilesNotes(Notes.IProxy provider)
		{
			_provider = provider;

			// Read the new default server profile name and description from the options.
			Logger.LogDebug("Reading profile name and description from the options.");

			DefaultServerProfileName = OptionApi.GetString("DefaultServerProfileName");
			Logger.LogInfo(string.Format("DefaultServerProfileName=\"{0}\"", DefaultServerProfileName));

			DefaultServerProfileDescription = OptionApi.GetString("DefaultServerProfileDescription");
			Logger.LogInfo(string.Format("DefaultServerProfileDescription=\"{0}\"", DefaultServerProfileDescription));
		}