Skip to content

Commit

Permalink
1. Update SDK to 1.11.1
Browse files Browse the repository at this point in the history
2. Default 8081 as emulator port.
3. Fix store procedure execution for pCollection.
  • Loading branch information
mingaliu committed Dec 30, 2016
1 parent f186b7a commit d654c59
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2,766 deletions.
6 changes: 4 additions & 2 deletions DocumentDBStudio/Helpers/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ namespace Microsoft.Azure.DocumentDBStudio.Helpers
{
static class Constants
{
public static readonly string ProductVersion = "0.71";
public static readonly string ProductVersion = "0.72";
public static readonly string ApplicationName = "Azure DocumentDB Studio";

public static int EmulatorPort = 8081;

/// <summary>
/// We can enable when there is emulator.
/// </summary>
public static readonly string LocalEmulatorEndpoint = "https://localhost:443/";
public static readonly string LocalEmulatorEndpoint = "https://localhost:" + EmulatorPort + "/";
// [SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine")]
public static readonly string LocalEmulatorMasterkey = "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==";
}
Expand Down
4 changes: 3 additions & 1 deletion DocumentDBStudio/Nodes/ResourceNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,8 @@ async void myMenuItemAttachmentFromFile_Click(object sender, EventArgs eventArg)
void myMenuItemExecuteStoredProcedure_Click(object sender, EventArgs e)
{
SetCrudContext(this, OperationType.Execute, _resourceType,
"Here is the input parameters to the storedProcedure. Input each parameter as one line without quotation mark.", ExecuteStoredProcedureAsync);
"Input parameters to the storedProcedure. Have each parameter as one line with proper quotes. For example: \r\n \"parameter1IsString\" \r\n {'$set': {'parameter2IsObject': {'value':'1'}}}",
this.ExecuteStoredProcedureAsync);
}

void myMenuItemDelete_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -618,6 +619,7 @@ async void ExecuteStoredProcedureAsync(object resource, RequestOptions requestOp
using (PerfStatus.Start("ExecuateStoredProcedure"))
{
rr = await _client.ExecuteStoredProcedureAsync<dynamic>((Tag as Resource).GetLink(_client),
requestOptions,
dynamicInputParams);
}
string executeResult = rr.Response.ToString();
Expand Down
Loading

0 comments on commit d654c59

Please sign in to comment.