private static void StoreData() { Console.Write("\nInsert the data to be stored: "); byte[] data = Encoding.UTF8.GetBytes(Console.ReadLine()); try { string key = currentBroker.StoreData(data); Console.WriteLine("\nValue stored with success, with the key - {0}!", key); } catch (FaultException <BrokerExceptionFaultContract> e) { Console.WriteLine("\n" + e.Detail.Message); } }