bool IContextProperty.IsNewContextOK(Context newCtx)
        {
            // We could also inspect the other properties for the context to make sure none conflict,
            // but for this, we just find out if the new context has a WatchdogProperty property. If not, reject it
            WatchdogProperty newContextLogProperty = newCtx.GetProperty(PropName) as WatchdogProperty;

            if (newContextLogProperty == null)
            {
                Debug.Assert(false);
                return(false);
            }
            return(true);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="WatchdogSink"/> class.
 /// </summary>
 /// <param name="ims">The message sink.</param>
 /// <param name="property">The property <see cref="WatchdogProperty"/> owner of this object.</param>
 internal WatchdogSink(IMessageSink ims, WatchdogProperty property)
 {
     m_Next     = ims;
     m_Property = property;
 }