Hiblet/NewZopa01 — pull request #40 by Hiblet (2014-04-09 16:30:46+00:00)
Title: Market Expiration implemented; GTD's moved to local market storage; Database thread removed; Utility Timer used to clear DB Conns in Sleep state; MarketManager uses less connections to Open/Accept/Halt/Close all markets;

CHANGED: AppThreads.cs
-- Removed Database thread (not used).
-- Added Pulse timer for Utility thread.
-- Renamed timer callbacks to make distinct.
-- Removed commented out lines.

CHANGED: DatabaseAccess.cs
-- Added code to kill sleeping MySQL connections.
-- Added debugging to WrappedConnection class.
-- Added try around conn.Close() to ride over failures.

CHANGED: Extensions.cs
-- Added ContainsCaseSensitive() (not used)

CHANGED: Market.cs
-- Market 'All' operation functions now create one DB connection per table
and pass through connections to sub-routines.
-- Expiration implemented.
-- Order Registry dump removed.

CHANGED: MarketDefn.cs
-- Expiration setter does not convert time value, as it should receive UTC.

CHANGED: MarketManager.cs
-- MarketManager creates DB connections and passes through to Market
-- when opening and closing all markets, to reduce number of connections.
-- Added Get/SetMarketExpirationDate() functions for web access.
-- Slight reduction in diagnostic logging amount on each match pass.

CHANGED: MarketPriceLevel.cs
-- Logging improved to annotate Market Price.
-- Logging amount reduced slightly.

CHANGED: Orders.js
-- Removed commented out functions.

CHANGED: OrderContainers.cs
-- Logging improved to annotate Market Price.

CHANGED: MarketControl.js
-- Implemented Expiration date get/set code.

CHANGED: MarketControl.css
-- Uses smaller fonts.
-- Added date textbox styling.
-- Reduced button size.

CHANGED: MarketControl.aspx
-- HTML added for controls for Expiration Date.
-- Additional commenting.

CHANGED: MarketControl.aspx.cs
-- WebMethods added for Expiration Date.

CHANGED: Web.Config
-- Text string identifier added to connection strings for Database type.
-- Pulse timer default values added for Utility thread.