private Tapstream(string accountName, string developerSecret, Config config) { del = new DelegateImpl(this); platform = new PlatformImpl(); listener = new CoreListenerImpl(); #if TEST_WINPHONE || WINDOWS_PHONE appEventSource = new AppEventSourceImpl(); #else appEventSource = null; #endif core = new Core(del, platform, listener, appEventSource, accountName, developerSecret, config); core.Start(); }
public Core(Delegate del, Platform platform, CoreListener listener, AppEventSource appEventSource, String accountName, String developerSecret, Config config) { this.del = del; this.platform = platform; this.listener = listener; this.appEventSource = appEventSource; this.config = config; this.accountName = Clean(accountName); this.secret = developerSecret; MakePostArgs(); firedEvents = platform.LoadFiredEvents(); }