// INIZIALIZZA LA DLL
        public bool Init(string IdCampagna, string NomeCampagna, TDictionary contactStateConstants)
        {
            try
            {
                Logger.Instance().WriteTrace(String.Format("Init: Begin - Service : {0}", NomeCampagna));

                this.IdCampagna   = IdCampagna;
                this.NomeCampagna = NomeCampagna;

                FillDictionary(contactStateConstants);



                Logger.Instance().WriteTrace(String.Format("Init: Fill Dictionary : {0}", contactStateConstants.ToString()));


                //Creation of proper DatabaseHandler, depending on .ini Configuration

                dbHandler = new DatabaseMYSQLHandler();


                dbHandler.ConnectionString = Properties.Settings.Default.ConnectionString;// "Server=localhost;Database=cprovider;Uid=root;Pwd=root";
                dbHandler.ContactTable     = "cpanagra";
                dbHandler.DbName           = "csfil";
                dbHandler.NomeCampagna     = this.NomeCampagna;
                dbHandler.IdCampagna       = this.IdCampagna;


                //Opening db Connection
                if (dbHandler.OpenConnection())
                {
                    dbHandler.CountContacts();
                    dbHandler.DatabaseRefreshed = true;
                }
                else
                {
                    Logger.Instance().WriteTrace(String.Format("INIT: Errors occured. Closing ContactProvider Istance for Service : {0}", NomeCampagna));
                    return(false);
                }


                Logger.Instance().WriteTrace(string.Format("INIT: End - Service {0}", this.NomeCampagna));
                return(true);
            }
            catch (Exception e)
            {
                Logger.Instance().WriteTrace(string.Format("INIT: Exception occured. Closing ContactProvider Istance for Service {0}. Exception text: {1}", this.NomeCampagna, e.Message + "::" + e.InnerException));
                return(false);
            }
        }
        //  METODI CONTACT PROVIDER

        public int Contacts()
        {
            return(dbHandler.CountContacts());// call alla classe dbHandler che gestisce la query per conteggiare i contatti
        }