removing Obsolete attribute from config API classes (#1098)

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Co-authored-by: halspang <70976921+halspang@users.noreply.github.com>
This commit is contained in:
Shivam Kumar 2023-05-25 02:35:33 +05:30 committed by GitHub
parent a3e5106040
commit e7a71c423a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 1 additions and 15 deletions

View File

@ -13,7 +13,6 @@ namespace ConfigurationApi.Controllers
{
[ApiController]
[Route("configuration")]
[Obsolete]
public class ConfigurationController : ControllerBase
{
private ILogger<ConfigurationController> logger;

View File

@ -1,4 +1,4 @@
using System;
using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;
using Dapr.Client;
@ -10,7 +10,6 @@ namespace ConfigurationApi
{
public class Program
{
[Obsolete]
public static void Main(string[] args)
{
Console.WriteLine("Starting application.");

View File

@ -907,7 +907,6 @@ namespace Dapr.Client
/// <param name="metadata">Optional metadata that will be sent to the configuration store being queried.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken" /> that can be used to cancel the operation.</param>
/// <returns>A <see cref="Task"/> containing a <see cref="GetConfigurationResponse"/></returns>
[Obsolete("This API is currently not stable as it is in the Alpha stage. This attribute will be removed once it is stable.")]
public abstract Task<GetConfigurationResponse> GetConfiguration(
string storeName,
IReadOnlyList<string> keys,
@ -922,7 +921,6 @@ namespace Dapr.Client
/// <param name="metadata">Optional metadata that will be sent to the configuration store being queried.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken" /> that can be used to cancel the operation.</param>
/// <returns>A <see cref="SubscribeConfigurationResponse"/> which contains a reference to the stream.</returns>
[Obsolete("This API is currently not stable as it is in the Alpha stage. This attribute will be removed once it is stable.")]
public abstract Task<SubscribeConfigurationResponse> SubscribeConfiguration(
string storeName,
IReadOnlyList<string> keys,
@ -936,7 +934,6 @@ namespace Dapr.Client
/// <param name="id">The Id of the subscription that should no longer be watched.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken" /> that can be used to cancel the operation.</param>
/// <returns></returns>
[Obsolete("This API is currently not stable as it is in the Alpha stage. This attribute will be removed once it is stable.")]
public abstract Task<UnsubscribeConfigurationResponse> UnsubscribeConfiguration(
string storeName,
string id,

View File

@ -1286,7 +1286,6 @@ namespace Dapr.Client
#region Configuration API
/// <inheritdoc/>
[Obsolete]
public async override Task<GetConfigurationResponse> GetConfiguration(
string storeName,
IReadOnlyList<string> keys,
@ -1330,7 +1329,6 @@ namespace Dapr.Client
}
/// <inheritdoc/>
[Obsolete]
public override Task<SubscribeConfigurationResponse> SubscribeConfiguration(
string storeName,
IReadOnlyList<string> keys,
@ -1361,7 +1359,6 @@ namespace Dapr.Client
return Task.FromResult(new SubscribeConfigurationResponse(new DaprSubscribeConfigurationSource(client.SubscribeConfiguration(request, options))));
}
[Obsolete]
public override async Task<UnsubscribeConfigurationResponse> UnsubscribeConfiguration(
string storeName,
string id,

View File

@ -6,7 +6,6 @@ namespace Dapr.Client
/// <summary>
/// Response for a Subscribe Configuration request.
/// </summary>
[Obsolete("This response utilizes an alpha API which is subject to change. This attribute will be removed when the API is no longer Alpha.")]
public class SubscribeConfigurationResponse
{
private ConfigurationSource source;

View File

@ -22,7 +22,6 @@ namespace Dapr.Extensions.Configuration
/// <summary>
/// Extension used to call the Dapr Configuration API and store the values in a <see cref="IConfiguration"/>.
/// </summary>
[Obsolete]
public static class DaprConfigurationStoreExtension
{
/// <summary>

View File

@ -24,7 +24,6 @@ namespace Dapr.Extensions.Configuration
/// A configuration provider that utilizes the Dapr Configuration API. It can either be a single, constant
/// call or a streaming call.
/// </summary>
[Obsolete]
internal class DaprConfigurationStoreProvider : ConfigurationProvider, IDisposable
{
private string store;

View File

@ -22,7 +22,6 @@ namespace Dapr.Extensions.Configuration
/// <summary>
/// Configuration source that provides a <see cref="DaprConfigurationStoreProvider"/>.
/// </summary>
[Obsolete]
public class DaprConfigurationStoreSource : IConfigurationSource
{
/// <summary>

View File

@ -20,7 +20,6 @@ using System;
namespace Dapr.Client.Test
{
[System.Obsolete]
public class ConfigurationApiTest
{
[Fact]

View File

@ -9,7 +9,6 @@ using Autogenerated = Dapr.Client.Autogen.Grpc.v1;
namespace Dapr.Client.Test
{
[Obsolete]
public class ConfigurationSourceTest
{
private readonly string StoreName = "testStore";