Parcourir la source

Ensuring that IPostables that are posted as IPostableFragments are updated correctly.

Kenric Nugteren il y a 1 an
Parent
commit
38dccfc497
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      InABox.Core/Postable/PostResult.cs

+ 4 - 0
InABox.Core/Postable/PostResult.cs

@@ -53,6 +53,10 @@ namespace InABox.Core
                 fragmentsList = new List<IPostableFragment<TPostable>>();
                 fragments[type] = fragmentsList;
             }
+            if(fragment is IPostable postableFragment)
+            {
+                postableFragment.Post();
+            }
             fragmentsList.Add(fragment);
         }
     }