/** * Restituisce un'istanza della classe CacheManager */ public static Cachemanager instanceCachemanager() { if (instance == null) { instance = new Cachemanager(); } return instance; }
private void Init() { const string pos = "ThisAddIn.Init - "; log = new Logger(); log.Start(); log.Info(pos + "INIT"); AddKPCategory(); attachmentName = Constants.KP_ATTACHMENT_NAME; attachmentPath = Constants.getWorkFolder(); //Inizializzazione degli inspector inspectors = this.Application.Inspectors; inspectors.NewInspector += new Microsoft.Office.Interop.Outlook.InspectorsEvents_NewInspectorEventHandler(Inspectors_NewInspector); //Inizializzazione della cache cache = Cachemanager.instanceCachemanager(); Ribbons = new Hashtable(); MailItems = new Hashtable(); RibbonsType = new Hashtable(); //Inizializzazione della lista della lista delle cartelle da monitorare listItems = new List<Outlook.Items>(); log.Info(pos + "END"); }