public static BufferAddress GetInstance(string pathForRequestBuff, string pathForResponseBuff) { if (instance == null) { instance = new BufferAddress(pathForRequestBuff, pathForResponseBuff); } return(instance); }
public void SendRequestForExistingStorages() { _storagesInSystem.Clear(); Program.bufferAddress = BufferAddress.GetInstance(Program.pathForRequest, Program.pathForResponse); _storagesInSystem = new Dictionary <string, StoragePrototype>(); string request = "GET STORAGE"; executeRequest(request); }