Example #1
0
        public Market(ServerLogger log)
        {
            logger      = log;
            stockholder = "unknown";

            traders = new Dictionary <string, TraderHandler>();

            theMarket = new MarketInfo(new HashSet <string>(), stockholder);
        }
Example #2
0
        public TraderHandler(TcpClient client, Market market, ServerLogger log)
        {
            theClient = client;
            theMarket = market;
            logger    = log;

            //Generates the ID for this trader via GUID (which is what microsoft calls UUIDs for some silly reason)
            id = Guid.NewGuid().ToString().ToLower();
        }