public DataAccessBase(EventLoggerAccess logger) { _AddressLock = new object(); _TaskFactory = new TaskFactory(TaskCreationOptions.PreferFairness, TaskContinuationOptions.ExecuteSynchronously); _LastTask = new Task(new Action(() => { })); _LastTask.RunSynchronously(); _logger = logger; _AvailableConnections = new List<EndpointAddress>(); _DashboardAccess = new DashboardAccess(); _DashboardAccess.Start(); _SubsystemDisplayAccess = new SubsystemDisplayAccess(); _SubsystemDisplayAccess.DisplayUpdateRequest += new DashboardUpdateRequestHandler(DisplaySendUpdate); _SubsystemDisplayAccess.ControlUpdateRequest += new DashboardControlUpdateHandler(DisplayControlUpdate); }
public DataAccessBase(EventLoggerAccess logger) { _AddressLock = new object(); _TaskFactory = new TaskFactory(TaskCreationOptions.PreferFairness, TaskContinuationOptions.ExecuteSynchronously); _LastTask = new Task(new Action(() => { })); _LastTask.RunSynchronously(); _logger = logger; _AvailableConnections = new List <EndpointAddress>(); _DashboardAccess = new DashboardAccess(); _DashboardAccess.Start(); _SubsystemDisplayAccess = new SubsystemDisplayAccess(); _SubsystemDisplayAccess.DisplayUpdateRequest += new DashboardUpdateRequestHandler(DisplaySendUpdate); _SubsystemDisplayAccess.ControlUpdateRequest += new DashboardControlUpdateHandler(DisplayControlUpdate); }