Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding my custom INotifyOnCompetion hack I use in 4th and Mayor right…

… now.
  • Loading branch information...
commit 90a23a992afb0116ed7531d413ea18717d01a785 1 parent 08ff694
@jeffwilcox authored
Showing with 8 additions and 0 deletions.
  1. +1 −0  AgFx/AgFx.csproj
  2. +7 −0 AgFx/CacheEntry.cs
View
1  AgFx/AgFx.csproj
@@ -93,6 +93,7 @@
<Compile Include="IDataLoader.cs" />
<Compile Include="DataLoaderAttribute.cs" />
<Compile Include="DataManager.cs" />
+ <Compile Include="INotifyOnCompletion.cs" />
<Compile Include="LoadContext.cs" />
<Compile Include="LoaderType.cs" />
<Compile Include="LoadRequestFailedException.cs" />
View
7 AgFx/CacheEntry.cs
@@ -814,6 +814,13 @@ private void NotifyCompletion(ValueLoader loader, Exception ex)
iupd.IsUpdating = false;
}
+ // This is a custom one-off I use in my apps right now.
+ INotifyOnCompletion inoc = ValueInternal as INotifyOnCompletion;
+ if (inoc != null)
+ {
+ inoc.OnCompletion(ex);
+ }
+
LoaderType loaderType = loader != null ? loader.LoaderType : LoaderType.CacheLoader;
// UpdateCompletionHandler makes sure to call handler on UI thread

1 comment on commit 90a23a9

@shawnburke

Whats this INotifyOnCompletion thing?

Please sign in to comment.
Something went wrong with that request. Please try again.