Skip to content

Commit

Permalink
Added preview flag to API
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Willey committed Apr 30, 2020
1 parent f09b097 commit 3cbd3e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 36 deletions.
7 changes: 6 additions & 1 deletion Microsoft.Azure.Cosmos/src/CosmosClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,12 @@ internal CosmosClient(
/// uses this to decrypt responses before returning to the caller.
/// user composition to
/// </remarks>
public virtual CosmosResponseFactory ResponseFactory => this.ClientContext.ResponseFactory;
#if PREVIEW
public
#else
internal
#endif
virtual CosmosResponseFactory ResponseFactory => this.ClientContext.ResponseFactory;

/// <summary>
/// Gets the endpoint Uri for the Azure Cosmos DB service.
Expand Down
10 changes: 6 additions & 4 deletions Microsoft.Azure.Cosmos/src/Resource/CosmosResponseFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@

namespace Microsoft.Azure.Cosmos
{
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.Azure.Cosmos.Scripts;

/// <summary>
/// This response factory converts response messages
/// to the corresponding type response.
/// </summary>
public abstract class CosmosResponseFactory
#if PREVIEW
public
#else
internal
#endif
abstract class CosmosResponseFactory
{
/// <summary>
/// Creates a FeedResponse from a response message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1300,16 +1300,6 @@
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.CosmosClientOptions get_ClientOptions()"
},
"Microsoft.Azure.Cosmos.CosmosResponseFactory get_ResponseFactory()": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.CosmosResponseFactory get_ResponseFactory()"
},
"Microsoft.Azure.Cosmos.CosmosResponseFactory ResponseFactory": {
"Type": "Property",
"Attributes": [],
"MethodInfo": null
},
"Microsoft.Azure.Cosmos.Database GetDatabase(System.String)": {
"Type": "Method",
"Attributes": [],
Expand Down Expand Up @@ -1916,27 +1906,6 @@
},
"NestedTypes": {}
},
"CosmosResponseFactory": {
"Subclasses": {},
"Members": {
"Microsoft.Azure.Cosmos.FeedResponse`1[T] CreateItemFeedResponse[T](Microsoft.Azure.Cosmos.ResponseMessage)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.FeedResponse`1[T] CreateItemFeedResponse[T](Microsoft.Azure.Cosmos.ResponseMessage)"
},
"Microsoft.Azure.Cosmos.ItemResponse`1[T] CreateItemResponse[T](Microsoft.Azure.Cosmos.ResponseMessage)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.ItemResponse`1[T] CreateItemResponse[T](Microsoft.Azure.Cosmos.ResponseMessage)"
},
"Microsoft.Azure.Cosmos.Scripts.StoredProcedureExecuteResponse`1[T] CreateStoredProcedureExecuteResponse[T](Microsoft.Azure.Cosmos.ResponseMessage)": {
"Type": "Method",
"Attributes": [],
"MethodInfo": "Microsoft.Azure.Cosmos.Scripts.StoredProcedureExecuteResponse`1[T] CreateStoredProcedureExecuteResponse[T](Microsoft.Azure.Cosmos.ResponseMessage)"
}
},
"NestedTypes": {}
},
"CosmosSerializationOptions": {
"Subclasses": {},
"Members": {
Expand Down

0 comments on commit 3cbd3e4

Please sign in to comment.