Пример #1
0
		private void Initialize(Type t, bool fDeserialize)
		{
			m_first = new State(this, BuildHints(t), t);
			m_fDeserialize = fDeserialize;            
			m_htDuplicates.Clear();
			m_lstObjects.Clear();
		}
        private void Initialize()
        {
            m_notifyEvent = new AutoResetEvent(false);
            m_rpcEvent = new AutoResetEvent(false);
            m_evtShutdown = new ManualResetEvent(false);
            m_evtPing = new ManualResetEvent(false);

            m_rpcQueue = ArrayList.Synchronized(new ArrayList());
            m_rpcEndPoints = ArrayList.Synchronized(new ArrayList());
            m_requests = ArrayList.Synchronized(new ArrayList());
            m_notifyQueue = ArrayList.Synchronized(new ArrayList());

            m_notifyNoise = new WireProtocol.FifoBuffer();
            m_typeSysLookup = new TypeSysLookup();
            m_state = new State(this);
            m_fProcessExited = false;

            //default capabilities, used until clr can be queried.
            m_capabilities = new CLRCapabilities();

            m_RebootTime = new RebootTime();
        }
Пример #3
0
			State CreateInstance(SerializationHintsAttribute hints, Type t)
			{
				State next = new State(m_parent, hints, t);

				m_next = next;
				next.m_prev = this;

				return next;
			}