/// <summary> /// Create initial sertions after serialize. /// </summary> public GXClient() { m_ChecksumSettings = new GXChecksum(this); m_Statistics = new GXStatistics(); AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve); }
void Init(System.Runtime.Serialization.StreamingContext context) { m_Statistics = new GXStatistics(); m_ChecksumSettings = new GXChecksum(this); m_replyEvent = new ManualResetEvent(false); m_sync = new object(); Packets = new Stack<GXPacket>(); PacketsSync = new object(); if (m_MediaTypeCache == null) { m_MediaTypeCache = new Dictionary<string, object[]>(); AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve); } }