protected ThreadContainerBase(WeakAction <CallbackArgs> callback) { m_runAgain = false; m_runAgainAfterDelay = -1; m_args = new CallbackArgs(); m_args.Clear(); m_callback = callback; m_state = State.NotRunning; }
protected ThreadContainerBase(Action <CallbackArgs> callback, Action disposeAndWaitCallback, bool disposeOnShutdown) { m_disposeOnShutdown = disposeOnShutdown; m_runAgain = false; m_runAgainAfterDelay = -1; m_args = new CallbackArgs(); m_args.Clear(); m_callback = new WeakAction <CallbackArgs>(callback); m_disposeAndWaitCallback = new WeakAction(disposeAndWaitCallback); m_state = State.NotRunning; }
protected ThreadContainerBase(WeakAction<CallbackArgs> callback) { m_runAgain = false; m_runAgainAfterDelay = -1; m_args = new CallbackArgs(); m_args.Clear(); m_callback = callback; m_state = State.NotRunning; }
protected ThreadContainerBase(Action<CallbackArgs> callback, Action disposeAndWaitCallback, bool disposeOnShutdown) { m_disposeOnShutdown = disposeOnShutdown; m_runAgain = false; m_runAgainAfterDelay = -1; m_args = new CallbackArgs(); m_args.Clear(); m_callback = new WeakAction<CallbackArgs>(callback); m_disposeAndWaitCallback = new WeakAction(disposeAndWaitCallback); m_state = State.NotRunning; }