Exemplo n.º 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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public void Delete(RequestStateKey key)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 public RequestState Get(RequestStateKey key)
 {
     throw new NotImplementedException();
 }