소스 검색

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);
         }
     }