private static void DoWork(string source, string target, string version) { using (ComConnector connector = new ComConnector(version, source)) { connector.Connect(); using (SqlConnection connection = new SqlConnection(target)) { connection.Open(); ExchangeSession session = new ExchangeSession(connection); session.Enlist(new Catalog_InternalDocument_Adapter(connector), new Catalog_InternalDocument_Translator()); session.Enlist(new Catalog_Files_Adapter(connector), new Catalog_Files_Translator()); session.DoExchange(); } } }