Permalink
Browse files

Deprecate obsolete ListAllAsString,ListOneTimeAsString,ListContinuous…

…AsString projection functions
  • Loading branch information...
shaan1337 committed Jan 28, 2019
1 parent cd83cd1 commit 6c220edaf00e06a36bfdbfe620537db98e26172d
@@ -56,12 +56,6 @@ public Task CreateContinuous(EndPoint endPoint, string name, string query, bool
query, userCredentials, HttpStatusCode.Created);
}

[Obsolete("Use 'Task<List<ProjectionDetails>> ListAll' instead")]
public Task<string> ListAllAsString(EndPoint endPoint, UserCredentials userCredentials = null, string httpSchema = EndpointExtensions.HTTP_SCHEMA)
{
return SendGet(endPoint.ToHttpUrl(httpSchema, "/projections/any"), userCredentials, HttpStatusCode.OK);
}

public Task<List<ProjectionDetails>> ListAll(EndPoint endPoint, UserCredentials userCredentials = null, string httpSchema = EndpointExtensions.HTTP_SCHEMA)
{
return SendGet(endPoint.ToHttpUrl(httpSchema, "/projections/any"), userCredentials, HttpStatusCode.OK)
@@ -73,12 +67,6 @@ public Task<List<ProjectionDetails>> ListAll(EndPoint endPoint, UserCredentials
});
}

[Obsolete("Use 'Task<List<ProjectionDetails>> ListOneTime' instead")]
public Task<string> ListOneTimeAsString(EndPoint endPoint, UserCredentials userCredentials = null, string httpSchema = EndpointExtensions.HTTP_SCHEMA)
{
return SendGet(endPoint.ToHttpUrl(httpSchema, "/projections/onetime"), userCredentials, HttpStatusCode.OK);
}

public Task<List<ProjectionDetails>> ListOneTime(EndPoint endPoint, UserCredentials userCredentials = null, string httpSchema = EndpointExtensions.HTTP_SCHEMA)
{
return SendGet(endPoint.ToHttpUrl(httpSchema, "/projections/onetime"), userCredentials, HttpStatusCode.OK)
@@ -90,12 +78,6 @@ public Task<List<ProjectionDetails>> ListOneTime(EndPoint endPoint, UserCredenti
});
}

[Obsolete("Use 'Task<List<ProjectionDetails>> ListContinuous' instead")]
public Task<string> ListContinuousAsString(EndPoint endPoint, UserCredentials userCredentials = null, string httpSchema = EndpointExtensions.HTTP_SCHEMA)
{
return SendGet(endPoint.ToHttpUrl(httpSchema, "/projections/continuous"), userCredentials, HttpStatusCode.OK);
}

public Task<List<ProjectionDetails>> ListContinuous(EndPoint endPoint, UserCredentials userCredentials = null, string httpSchema = EndpointExtensions.HTTP_SCHEMA)
{
return SendGet(endPoint.ToHttpUrl(httpSchema, "/projections/continuous"), userCredentials, HttpStatusCode.OK)
@@ -121,17 +121,6 @@ public Task CreateContinuousAsync(string name, string query, bool trackEmittedSt
return _client.CreateContinuous(_httpEndPoint, name, query, trackEmittedStreams, userCredentials, _httpSchema);
}

/// <summary>
/// Asynchronously lists this status of all projections.
/// </summary>
/// <param name="userCredentials">Credentials for the operation.</param>
/// <returns>String of JSON containing projection statuses.</returns>
[Obsolete("Use 'Task<List<ProjectionDetails>> ListAll' instead")]
public Task<string> ListAllAsStringAsync(UserCredentials userCredentials = null)
{
return _client.ListAllAsString(_httpEndPoint, userCredentials, _httpSchema);
}

/// <summary>
/// Asynchronously lists this status of all projections.
/// </summary>
@@ -142,17 +131,6 @@ public Task<List<ProjectionDetails>> ListAllAsync(UserCredentials userCredential
return _client.ListAll(_httpEndPoint, userCredentials, _httpSchema);
}

/// <summary>
/// Asynchronously lists this status of all one-time projections.
/// </summary>
/// <param name="userCredentials">Credentials for the operation.</param>
/// <returns>String of JSON containing projection statuses.</returns>
[Obsolete("Use 'Task<List<ProjectionDetails>> ListOneTime' instead")]
public Task<string> ListOneTimeAsStringAsync(UserCredentials userCredentials = null)
{
return _client.ListOneTimeAsString(_httpEndPoint, userCredentials, _httpSchema);
}

/// <summary>
/// Asynchronously lists this status of all one-time projections.
/// </summary>
@@ -163,17 +141,6 @@ public Task<List<ProjectionDetails>> ListOneTimeAsync(UserCredentials userCreden
return _client.ListOneTime(_httpEndPoint, userCredentials, _httpSchema);
}

/// <summary>
/// Synchronously lists this status of all continuous projections.
/// </summary>
/// <param name="userCredentials">Credentials for the operation.</param>
/// <returns>String of JSON containing projection statuses.</returns>
[Obsolete("Use 'Task<List<ProjectionDetails>> ListContinuous' instead")]
public Task<string> ListContinuousAsStringAsync(UserCredentials userCredentials = null)
{
return _client.ListContinuousAsString(_httpEndPoint, userCredentials, _httpSchema);
}

/// <summary>
/// Synchronously lists this status of all continuous projections.
/// </summary>

0 comments on commit 6c220ed

Please sign in to comment.