Exemple #1
0
        // Note that integration must be set AFTER the MongoDB handler module
        protected override void Initialize()
        {
            database = ((MongoDBHandlerServer)handlerContainer.GetHandler("mongodbhandler")).Database;
            string integrationFolderTroToVisma = remoteConnection.GetDataPath();

            integrationFolderTroToVisma = Path.Combine(integrationFolderTroToVisma, IntegrationTroToVismaFolder);

            troToVismaExport = new TroToVismaExport(logger, integrationFolderTroToVisma, database, Message);
        }
        // Note that integration must be set AFTER the MongoDB handler module
        protected override void Initialize()
        {
            database = ((MongoDBHandlerServer)handlerContainer.GetHandler("mongodbhandler")).Database;

            troToVismaPollingInterval = (int)Message["trotovismapollinginterval"].GetValueOrDefault(12000);

            string integrationFolderTroToVisma = remoteConnection.GetDataPath() + Path.DirectorySeparatorChar + IntegrationTroToVismaFolder;

            troToVismaExport        = new TroToVismaExport(logger, integrationFolderTroToVisma, database, (DataTree)Message.Clone());
            troToVismaPollingThread = new Thread(RuntTroToVismaExport);
            troToVismaPollingThread.Start();
        }