コード例 #1
0
		public void GoogleAuthenticationTest()
		{
			Tracing.TraceMsg("Entering Health AuthenticationTest");

			HealthQuery query = new HealthQuery();
			H9Service service = new H9Service(this.ApplicationName);
			if (this.userName != null)
			{
				service.Credentials = new GDataCredentials(this.userName, this.passWord);
			}
			service.RequestFactory = this.factory;

			HealthFeed feed = service.Query(query) as HealthFeed;

			ObjectModelHelper.DumpAtomObject(feed, CreateDumpFileName("AuthenticationTest"));
			service.Credentials = null; 
		}
コード例 #2
0
        public void GoogleAuthenticationTest()
        {
            Tracing.TraceMsg("Entering Health AuthenticationTest");

            HealthQuery query   = new HealthQuery();
            H9Service   service = new H9Service(this.ApplicationName);

            if (this.userName != null)
            {
                service.Credentials = new GDataCredentials(this.userName, this.passWord);
            }
            service.RequestFactory = this.factory;

            HealthFeed feed = service.Query(query) as HealthFeed;

            ObjectModelHelper.DumpAtomObject(feed, CreateDumpFileName("AuthenticationTest"));
            service.Credentials = null;
        }