Example #1
0
        /// <summary>
        /// if the service is using a Google Request Factory it will set the passed
        /// in token to the factory. NET CF does not support authsubtokens here
        /// </summary>
        /// <returns>string</returns>
        public void SetAuthenticationToken(string token)
        {
            GDataGAuthRequestFactory factory = _factory as GDataGAuthRequestFactory;

            if (factory != null)
            {
                factory.GAuthToken = token;
            }
            else
            {
                GAuthSubRequestFactory f = _factory as GAuthSubRequestFactory;
                if (f != null)
                {
                    f.Token = token;
                }
            }
        }
Example #2
0
 /// <summary>
 /// default constructor
 /// </summary>
 internal GAuthSubRequest(GDataRequestType type, Uri uriTarget, GAuthSubRequestFactory factory) : base(type, uriTarget, factory)
 {
     _factory = factory;
 }