浏览代码

remove some api.

master
yangxiaodong 7 年前
父节点
当前提交
9d97e19056
共有 6 个文件被更改,包括 4 次插入54 次删除
  1. +0
    -15
      src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs
  2. +0
    -15
      src/DotNetCore.CAP.PostgreSql/PostgreSqlStorageConnection.cs
  3. +3
    -2
      src/DotNetCore.CAP.SqlServer/SqlServerMonitoringApi.cs
  4. +1
    -1
      src/DotNetCore.CAP.SqlServer/SqlServerStorage.cs
  5. +0
    -16
      src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs
  6. +0
    -5
      src/DotNetCore.CAP/IStorageConnection.cs

+ 0
- 15
src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs 查看文件

@@ -151,26 +151,11 @@ VALUES(@Name,@Group,@Content,@Retries,@Added,@ExpiresAt,@StatusName);";
return new MySqlFetchedMessage(fetchedMessage.MessageId, fetchedMessage.MessageType, connection, transaction);
}

public long GetSetCount(string key)
{
throw new NotImplementedException();
}

public List<string> GetRangeFromSet(string key, int startingFrom, int endingAt)
{
throw new NotImplementedException();
}

public MessageData GetJobData(string jobId)
{
throw new NotImplementedException();
}

public StateData GetStateData(string jobId)
{
throw new NotImplementedException();
}

public bool ChangePublishedState(int messageId, IState state)
{
throw new NotImplementedException();


+ 0
- 15
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorageConnection.cs 查看文件

@@ -135,26 +135,11 @@ namespace DotNetCore.CAP.PostgreSql
return new PostgreSqlFetchedMessage(fetchedMessage.MessageId, fetchedMessage.MessageType, connection, transaction);
}

public long GetSetCount(string key)
{
throw new NotImplementedException();
}

public List<string> GetRangeFromSet(string key, int startingFrom, int endingAt)
{
throw new NotImplementedException();
}

public MessageData GetJobData(string jobId)
{
throw new NotImplementedException();
}

public StateData GetStateData(string jobId)
{
throw new NotImplementedException();
}

public bool ChangePublishedState(int messageId, IState state)
{
throw new NotImplementedException();


+ 3
- 2
src/DotNetCore.CAP.SqlServer/SqlServerMonitoringApi.cs 查看文件

@@ -72,9 +72,10 @@ _options.Schema);
GetHourlyTimelineStats(connection, "succeeded"));
}

public IList<ServerDto> Servers()
public IList<SubscriberDto> Subscribers()
{
return new List<ServerDto>();
// MethodMatcherCache
return new List<SubscriberDto>();
}

public IDictionary<DateTime, int> SucceededByDatesCount()


+ 1
- 1
src/DotNetCore.CAP.SqlServer/SqlServerStorage.cs 查看文件

@@ -13,7 +13,7 @@ namespace DotNetCore.CAP.SqlServer
{
private readonly SqlServerOptions _options;
private readonly ILogger _logger;
private readonly IDbConnection _existingConnection;
private readonly IDbConnection _existingConnection = null;

public SqlServerStorage(ILogger<SqlServerStorage> logger, SqlServerOptions options)
{


+ 0
- 16
src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs 查看文件

@@ -163,25 +163,9 @@ VALUES(@Name,@Group,@Content,@Retries,@Added,@ExpiresAt,@StatusName);";

// ------------------------------------------

public long GetSetCount(string key)
{
return 11;
}

public List<string> GetRangeFromSet(string key, int startingFrom, int endingAt)
{
return new List<string> { "11", "22", "33" };
}

public MessageData GetJobData(string jobId)
{
return new MessageData();
}

public StateData GetStateData(string jobId)
{
return new StateData();
}

}
}

+ 0
- 5
src/DotNetCore.CAP/IStorageConnection.cs 查看文件

@@ -70,12 +70,7 @@ namespace DotNetCore.CAP
bool ChangePublishedState(int messageId, IState state);
bool ChangeReceivedState(int messageId, IState state);

long GetSetCount(string key);

List<string> GetRangeFromSet(string key, int startingFrom, int endingAt);

MessageData GetJobData( string jobId);

StateData GetStateData(string jobId);
}
}

正在加载...
取消
保存