Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
How to get x-ms-request-id from Azure table storage api call

Answered How to get x-ms-request-id from Azure table storage api call

  • שבת 28 יולי 2012 21:14
     
      קוד כלול

    I getting slow behavior for my azure tablestorage api calls on a windows azure app.I need to get the request id (x-ms-request-id in the response header) for a particular call. Is there a way I can get it using the storageclient api? Does the storage client api even expose this id? If not, is there any other way to get this id?

    I am using the api in the following way:

            public UserDataModel GetUserData(String UserId)
        {
            UserDataModel osudm = null;
            try
            {
                var result = (from c in GetServiceContext().OrgUserIdTable
                              where (c.RowKey == UserId)
                              select c).FirstOrDefault();
    
                UserDataSource osuds = new UserDataSource(this.account);
                osudm = osuds.GetUserData(result.PartitionKey, result.UserName);
            }
            catch (Exception e)
            {
            }
            return osudm;
        }

כל התגובות