Exemplo n.º 1
0
 public static BufferAddress GetInstance(string pathForRequestBuff, string pathForResponseBuff)
 {
     if (instance == null)
     {
         instance = new BufferAddress(pathForRequestBuff, pathForResponseBuff);
     }
     return(instance);
 }
Exemplo n.º 2
0
        public void SendRequestForExistingStorages()
        {
            _storagesInSystem.Clear();

            Program.bufferAddress = BufferAddress.GetInstance(Program.pathForRequest, Program.pathForResponse);
            _storagesInSystem     = new Dictionary <string, StoragePrototype>();
            string request = "GET STORAGE";

            executeRequest(request);
        }