Пример #1
0
 private protected override void OnChildClosed(IOpenKitObject childObject)
 {
     lock (LockObject)
     {
         ThisComposite.RemoveChildFromList(childObject);
     }
 }
Пример #2
0
 private protected override void OnChildClosed(IOpenKitObject childObject)
 {
     lock (lockObject)
     {
         ThisComposite.RemoveChildFromList(childObject);
         if (childObject is ISessionInternals session)
         {
             sessionWatchdog.DequeueFromClosing(session);
         }
     }
 }
Пример #3
0
 void IOpenKitComposite.OnChildClosed(IOpenKitObject childObject)
 {
     OnChildClosed(childObject);
 }
Пример #4
0
 /// <summary>
 /// Abstract method to notify the composite about closing/ending a child object.
 ///
 /// <para>
 ///     The implementing class is fully responsible to handle the implementation.
 ///     In most cases removing the child from the container <see cref="IOpenKitComposite.RemoveChildFromList"/>
 ///     is sufficient.
 /// </para>
 /// </summary>
 /// <param name="childObject"></param>
 private protected abstract void OnChildClosed(IOpenKitObject childObject);
Пример #5
0
 bool IOpenKitComposite.RemoveChildFromList(IOpenKitObject childObject)
 {
     return(children.Remove(childObject));
 }
Пример #6
0
 void IOpenKitComposite.StoreChildInList(IOpenKitObject childObject)
 {
     children.Add(childObject);
 }