-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed various search issues, closes #78 - Added basic support for chat, updates every two seconds. Still some bugs to iron out (see #8) - Made "message" button on profile page functional (closes #69) - Added SmartDispatcher, that only dispatches when needed, Should give us a little performance increase - Changed Dispatching in MainViewModel - Added ability to suppress notifications - Made Helpers.Notify thread safe - Added auto updating to Chat - Added client function to post a chat message - Added client function to get chat beacon
- Loading branch information
Showing
17 changed files
with
306 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Windows.Threading; | ||
|
||
namespace SparklrWP.Utils | ||
{ | ||
/// <summary> | ||
/// Provides access to a smart invoke method, that only dispatchs if required. | ||
/// </summary> | ||
public static class SmartDispatcher | ||
{ | ||
private static Dispatcher dispatcher; | ||
|
||
static SmartDispatcher() | ||
{ | ||
dispatcher = System.Windows.Deployment.Current.Dispatcher; | ||
} | ||
|
||
/// <summary> | ||
/// Dispatches the given action to the UI thread | ||
/// </summary> | ||
/// <param name="a">The action to execute</param> | ||
public static void BeginInvoke(Action a) | ||
{ | ||
if (dispatcher.CheckAccess()) | ||
{ | ||
a(); | ||
} | ||
else | ||
{ | ||
dispatcher.BeginInvoke(a); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.