Преглед на файлове

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

Kenric Nugteren преди 1 година
родител
ревизия
38dccfc497
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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);
         }
     }