Skip to content

Commit

Permalink
Major update tp DocumentDBStudio,
Browse files Browse the repository at this point in the history
1. Change to DocumentDB GA SDK.
2. Support DocumentDB Offer browseing and update.
3. Report latency and resource charge for every CRUD/query at status bar.
4. Detect version change and prompt for update.
5. Render attachment media directly in the tool.
6. Add point GET for every resource.
7. Fix focus move problem when you select node.
8. Fix storedProcedure rendering result and add options to specify post-trigger/pre-trigger.
  • Loading branch information
mingaliu committed Apr 8, 2015
1 parent a90de2e commit 33d272a
Show file tree
Hide file tree
Showing 14 changed files with 1,282 additions and 388 deletions.
15 changes: 1 addition & 14 deletions DocumentDBStudio/DocumentClientExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal static class DocumentClientExtension
/// Only used in PCV and CTL test, configure to switch between selflink and altlink
/// </summary>
/// <returns></returns>
internal static string GetLink(this Resource resource)
internal static string GetLink(this Resource resource, DocumentClient client)
{
return resource.SelfLink;
}
Expand All @@ -33,19 +33,6 @@ public static Task<ResourceResponse<Attachment>> ReplaceAttachmentExAsync(this D
return client.ReplaceAttachmentAsync(attachment, options);
}

/// <summary>
/// Replaces a database as an asynchronous operation.
/// </summary>
/// <param name="client">document client.</param>
/// <param name="databaseUri">the updated attachment.</param>
/// <param name="database">the updated database.</param>
/// <param name="options">the request options for the request.</param>
/// <returns>The task object representing the service response for the asynchronous operation.</returns>
public static Task<ResourceResponse<Database>> ReplaceDatabaseExAsync(this DocumentClient client, Database database, RequestOptions options = null)
{
return client.ReplaceDatabaseAsync(database, options);
}

/// <summary>
/// Replace the specified stored procedure.
/// </summary>
Expand Down
15 changes: 4 additions & 11 deletions DocumentDBStudio/DocumentDBStudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,11 @@
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Azure.Documents.Client, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Reference Include="Microsoft.Azure.Documents.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Microsoft.Azure.Documents.Client.0.9.2-preview\lib\net40\Microsoft.Azure.Documents.Client.dll</HintPath>
<HintPath>..\packages\Microsoft.Azure.DocumentDB.1.0.0\lib\net40\Microsoft.Azure.Documents.Client.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.Threading.Tasks">
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Threading.Tasks.Extensions">
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop">
<HintPath>..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll</HintPath>
Expand Down Expand Up @@ -155,6 +146,7 @@
<Compile Include="MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="PerfStatus.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
Expand Down Expand Up @@ -215,6 +207,7 @@
<EmbeddedResource Include="Resources\prettyJSON\pretty-json.css" />
<EmbeddedResource Include="Resources\prettyJSON\PrettyPrintJSONTemplate.html" />
<EmbeddedResource Include="Resources\prettyJSON\underscore-min.js" />
<Content Include="Resources\special_offer.png" />
<Content Include="Resources\SystemFeed.png" />
<Content Include="Resources\User.png" />
<EmbeddedResource Include="SettingsForm.resx">
Expand Down
5 changes: 3 additions & 2 deletions DocumentDBStudio/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
using System.Xml;
using Microsoft.Azure.DocumentDBStudio.Properties;
using Newtonsoft.Json.Linq;
using System.Globalization;

namespace Microsoft.Azure.DocumentDBStudio
{
static class Constants
{
public readonly static string ProductVersion = "0.31";
public readonly static string ProductVersion = "0.50";
public readonly static string ApplicationName = "Azure DocumentDB Studio";

/// <summary>
Expand Down Expand Up @@ -99,7 +100,7 @@ public static dynamic ConvertJTokenToDynamic(JToken token)
}
return array;
}
throw new ArgumentException(string.Format("Unknown token type '{0}'", token.GetType()), "token");
throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, "Unknown token type '{0}'", token.GetType()), "token");
}
}

Expand Down
Loading

0 comments on commit 33d272a

Please sign in to comment.