public string ReadContent(string storageId, int length)
        {
            IServiceManager        manager = ServiceManager.GetInstance();
            IMemoryResponseStorage storage = manager.GetService <IMemoryResponseStorage>();

            return(storage.Read(storageId, length));
        }
예제 #2
0
        private void InitializeServices()
        {
            IServiceManager manager = ServiceManager.GetInstance();

            logger          = manager.GetService <ILoggingService>();
            encoder         = manager.GetService <IEncodingConverterService>();
            coreServer      = manager.GetService <ICoreServerService>("realserver");
            responseStorage = manager.GetService <IMemoryResponseStorage>();
        }