public string ReadContent(string storageId, int length) { IServiceManager manager = ServiceManager.GetInstance(); IMemoryResponseStorage storage = manager.GetService <IMemoryResponseStorage>(); return(storage.Read(storageId, length)); }
private void InitializeServices() { IServiceManager manager = ServiceManager.GetInstance(); logger = manager.GetService <ILoggingService>(); encoder = manager.GetService <IEncodingConverterService>(); coreServer = manager.GetService <ICoreServerService>("realserver"); responseStorage = manager.GetService <IMemoryResponseStorage>(); }