mirror of https://github.com/dapr/dotnet-sdk.git
				
				
				
			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:
		
							parent
							
								
									a3e5106040
								
							
						
					
					
						commit
						e7a71c423a
					
				| 
						 | 
				
			
			@ -13,7 +13,6 @@ namespace ConfigurationApi.Controllers
 | 
			
		|||
{
 | 
			
		||||
    [ApiController]
 | 
			
		||||
    [Route("configuration")]
 | 
			
		||||
    [Obsolete]
 | 
			
		||||
    public class ConfigurationController : ControllerBase
 | 
			
		||||
    {
 | 
			
		||||
        private ILogger<ConfigurationController> logger;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,7 +10,6 @@ namespace ConfigurationApi
 | 
			
		|||
{
 | 
			
		||||
    public class Program
 | 
			
		||||
    {
 | 
			
		||||
        [Obsolete]
 | 
			
		||||
        public static void Main(string[] args)
 | 
			
		||||
        {
 | 
			
		||||
            Console.WriteLine("Starting application.");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -22,7 +22,6 @@ namespace Dapr.Extensions.Configuration
 | 
			
		|||
    /// <summary>
 | 
			
		||||
    /// Configuration source that provides a <see cref="DaprConfigurationStoreProvider"/>.
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    [Obsolete]
 | 
			
		||||
    public class DaprConfigurationStoreSource : IConfigurationSource
 | 
			
		||||
    {
 | 
			
		||||
        /// <summary>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,7 +20,6 @@ using System;
 | 
			
		|||
 | 
			
		||||
namespace Dapr.Client.Test
 | 
			
		||||
{
 | 
			
		||||
    [System.Obsolete]
 | 
			
		||||
    public class ConfigurationApiTest
 | 
			
		||||
    {
 | 
			
		||||
        [Fact]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,7 +9,6 @@ using Autogenerated = Dapr.Client.Autogen.Grpc.v1;
 | 
			
		|||
 | 
			
		||||
namespace Dapr.Client.Test
 | 
			
		||||
{
 | 
			
		||||
    [Obsolete]
 | 
			
		||||
    public class ConfigurationSourceTest
 | 
			
		||||
    {
 | 
			
		||||
        private readonly string StoreName = "testStore";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue