示例#1
0
 /// <summary>
 /// Change a user's password.
 /// </summary>
 /// <param name="apiChangePasswordRequest">The change password request details.</param>
 /// <param name="callback"></param>
 /// <param name="state"></param>
 public virtual void BeginChangePassword(ApiChangePasswordRequestDTO apiChangePasswordRequest, ReliableAsyncCallback callback, object state)
 {
     string uriTemplate = "/changePassword";
     _client.BeginRequest(RequestMethod.POST, "session", uriTemplate , 
     new Dictionary<string, object>
     {
         { "apiChangePasswordRequest", apiChangePasswordRequest}
     },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0), 30000,0 ,callback, state);
 }
示例#2
0
 /// <summary>
 /// Change a user's password.
 /// </summary>
 /// <param name="apiChangePasswordRequest">The change password request details.</param>
 /// <param name="callback"></param>
 /// <param name="state"></param>
 public virtual void BeginChangePassword(ApiChangePasswordRequestDTO apiChangePasswordRequest, ApiAsyncCallback<ApiChangePasswordResponseDTO> callback, object state)
 {
     _client.BeginRequest(callback, state, "session", "/changePassword", "POST",
     new Dictionary<string, object>
     {
         { "apiChangePasswordRequest", apiChangePasswordRequest}
     }, TimeSpan.FromMilliseconds(0), "data");
 }
示例#3
0
        // ***********************************
        // ChangePassword
        // ***********************************


        /// <summary>
        /// Change a user's password.
        /// </summary>
        /// <param name="apiChangePasswordRequest">The change password request details.</param>
        public virtual ApiChangePasswordResponseDTO ChangePassword(ApiChangePasswordRequestDTO apiChangePasswordRequest)
        {
            string uriTemplate = "/changePassword";
            return _client.Request<ApiChangePasswordResponseDTO>(RequestMethod.POST,"session", uriTemplate ,
            new Dictionary<string, object>
            {
                { "apiChangePasswordRequest", apiChangePasswordRequest}
            },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0),30000,0 );
        }
示例#4
0
        // ***********************************
        // ChangePassword
        // ***********************************


        /// <summary>
        /// Change a user's password.
        /// </summary>
        /// <param name="apiChangePasswordRequest">The change password request details.</param>
        public virtual ApiChangePasswordResponseDTO ChangePassword(ApiChangePasswordRequestDTO apiChangePasswordRequest)
        {
            return _client.Request<ApiChangePasswordResponseDTO>("session", "/changePassword", "POST",
            new Dictionary<string, object>
            {
                { "apiChangePasswordRequest", apiChangePasswordRequest}
            }, TimeSpan.FromMilliseconds(0), "data");
        }