示例#1
0
        // This class is sealed because implementors of IRequestStateStore cannot
        // be expected to be able to store arbitrary additional data that may be
        // added in derived classes.

        /// <summary>
        /// Constructs a request state object using the specified
        /// request state key. The key identifies the service realm and request
        /// to which the state pertains.
        /// </summary>
        /// <param name="key"></param>
        public RequestState(RequestStateKey key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }

            this.Key = key;
        }
示例#2
0
        protected OAuthRequest(
            EndPoint resourceEndPoint,
            OAuthService settings,
            string verifier,
            IRequestStateStore stateStore,
            RequestStateKey stateKey)
        {
            this.ResourceEndPoint     = resourceEndPoint;
            this.Service              = settings;
            this.RequestTokenVerifier = verifier;

            this.stateStore = stateStore;
            this.state      = stateStore.Get(stateKey);
        }
示例#3
0
 public void Delete(RequestStateKey key)
 {
     throw new NotImplementedException();
 }
示例#4
0
 public RequestState Get(RequestStateKey key)
 {
     throw new NotImplementedException();
 }