示例#1
0
 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();
 }
示例#2
0
        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();
        }
示例#3
0
        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();
        }
示例#4
0
		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();
		}