Пример #1
0
        private void InitializeOffline()
        {
            var endPoint = (ClientSection)ConfigurationManager.GetSection("system.serviceModel/client");
            var address  = endPoint.Endpoints[0].Address;

            connectionMonitor = new ConnectionMonitor(address.AbsoluteUri, new HttpConnectionStrategy());//http://www.somed34.ru/

            queueRepository   = new QueueRepository();
            requestDispatcher = new RequestDispatcher(queueRepository, new Base64EncryptorEx());
            queue             = queueRepository.Load();

            queueManager = QueueManager <ActivityMessage> .Instance;
            queueManager.Initialize(queue, requestDispatcher, connectionMonitor, queueRepository);
        }