none
How to test the TableStorage locally using DevFabric?

คำตอบ

  • Hi - thanks for the question.  You can read more about using development storage here: http://msdn.microsoft.com/en-us/library/gg432983.aspx

    Specifically, to create a valid CloudTableClient object that uses developer storage, you should be able to use this code (please note, the storage key below is public information because it's always the same for developer storage - never share your cloud storage key):

    string accountname = "devstoreaccount1";
    string accountkey = "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==";
    string tableServiceAddress = "http://127.0.0.1:10002/devstoreaccount1";
    StorageCredentials creds = new StorageCredentialsAccountAndKey(accountname, accountkey);
    CloudTableClient tableClient = new CloudTableClient(tableServiceAddress, creds);


    -Jeff

    • ทำเครื่องหมายเป็นคำตอบโดย The New Emperor 6 มีนาคม 2555 11:30
    5 มีนาคม 2555 19:00
  • Hello.

    What do you mean when saying "i could not test my app locally"? Maybe your Table service don't started? Check Storage Emulator.

    • ทำเครื่องหมายเป็นคำตอบโดย The New Emperor 6 มีนาคม 2555 11:30
    6 มีนาคม 2555 3:06

ตอบทั้งหมด