/// <summary> /// Override this to made changes before device load. /// </summary> /// <remarks> /// Remember to call base. /// </remarks> protected override void OnDeserializing(bool designMode) { Keepalive = new GXKeepalive(this); this.GXClient = new GXClient(); Categories = new GXCategoryCollection(); Tables = new GXTableCollection(); m_AllowedMediaTypes = new GXMediaTypeCollection(this); m_Statistics = new GXDeviceStatistics(); m_sync = new object(); m_transactionsync = new object(); }
/// <summary> /// Initializes a new instance of the GXDevice class. /// </summary> public GXDevice() { Keepalive = new GXKeepalive(this); this.GXClient = new GXClient(); Categories = new GXCategoryCollection(); Tables = new GXTableCollection(); m_AllowedMediaTypes = new GXMediaTypeCollection(this); m_sync = new object(); m_transactionsync = new object(); }