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
/** | |
* Special Storage-Implementation that uses sessionStorage (like the default of the | |
* OAuth-library) but also sets a marker in localStorage so that other Browser-Tabs | |
* get notified when the user on this Tab logs out. | |
*/ | |
export class CrossTabStorage extends OAuthStorage { | |
readonly MARKER_KEY = "LOGGED_IN"; | |
constructor() { |
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
/// <summary> | |
/// The main program class. | |
/// </summary> | |
class Program | |
{ | |
// filename for dataset | |
private static string dataPath = Path.Combine(Environment.CurrentDirectory, "amazon0302.txt"); | |
/// <summary> | |
/// The main entry point of the program. |