Kaynağa Gözat

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

Kenric Nugteren 1 yıl önce
ebeveyn
işleme
38dccfc497
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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);
         }
     }