Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
cce8a976
Commit
cce8a976
authored
Aug 27, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add empty implement
parent
addc6c51
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
93 additions
and
0 deletions
+93
-0
MySqlStorage.cs
src/DotNetCore.CAP.MySql/MySqlStorage.cs
+11
-0
MySqlStorageConnection.cs
src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs
+20
-0
PostgreSqlStorage.cs
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorage.cs
+11
-0
PostgreSqlStorageConnection.cs
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorageConnection.cs
+20
-0
SqlServerStorage.cs
src/DotNetCore.CAP.SqlServer/SqlServerStorage.cs
+11
-0
SqlServerStorageConnection.cs
src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs
+20
-0
No files found.
src/DotNetCore.CAP.MySql/MySqlStorage.cs
View file @
cce8a976
using
System.Threading
;
using
System.Threading.Tasks
;
using
Dapper
;
using
DotNetCore.CAP.Dashboard
;
using
Microsoft.Extensions.Logging
;
using
MySql.Data.MySqlClient
;
...
...
@@ -17,6 +18,16 @@ namespace DotNetCore.CAP.MySql
_logger
=
logger
;
}
public
IStorageConnection
GetConnection
()
{
throw
new
System
.
NotImplementedException
();
}
public
IMonitoringApi
GetMonitoringApi
()
{
throw
new
System
.
NotImplementedException
();
}
public
async
Task
InitializeAsync
(
CancellationToken
cancellationToken
)
{
if
(
cancellationToken
.
IsCancellationRequested
)
return
;
...
...
src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs
View file @
cce8a976
...
...
@@ -148,5 +148,25 @@ 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
();
}
}
}
\ No newline at end of file
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorage.cs
View file @
cce8a976
using
System.Threading
;
using
System.Threading.Tasks
;
using
Dapper
;
using
DotNetCore.CAP.Dashboard
;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.Extensions.Logging
;
using
Npgsql
;
...
...
@@ -18,6 +19,16 @@ namespace DotNetCore.CAP.PostgreSql
_logger
=
logger
;
}
public
IStorageConnection
GetConnection
()
{
throw
new
System
.
NotImplementedException
();
}
public
IMonitoringApi
GetMonitoringApi
()
{
throw
new
System
.
NotImplementedException
();
}
public
async
Task
InitializeAsync
(
CancellationToken
cancellationToken
)
{
if
(
cancellationToken
.
IsCancellationRequested
)
return
;
...
...
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorageConnection.cs
View file @
cce8a976
...
...
@@ -133,5 +133,25 @@ 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
();
}
}
}
\ No newline at end of file
src/DotNetCore.CAP.SqlServer/SqlServerStorage.cs
View file @
cce8a976
...
...
@@ -2,6 +2,7 @@ using System.Data.SqlClient;
using
System.Threading
;
using
System.Threading.Tasks
;
using
Dapper
;
using
DotNetCore.CAP.Dashboard
;
using
Microsoft.Extensions.Logging
;
namespace
DotNetCore.CAP.SqlServer
...
...
@@ -17,6 +18,16 @@ namespace DotNetCore.CAP.SqlServer
_logger
=
logger
;
}
public
IStorageConnection
GetConnection
()
{
throw
new
System
.
NotImplementedException
();
}
public
IMonitoringApi
GetMonitoringApi
()
{
throw
new
System
.
NotImplementedException
();
}
public
async
Task
InitializeAsync
(
CancellationToken
cancellationToken
)
{
if
(
cancellationToken
.
IsCancellationRequested
)
return
;
...
...
src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs
View file @
cce8a976
...
...
@@ -139,5 +139,25 @@ VALUES(@Name,@Group,@Content,@Retries,@Added,@ExpiresAt,@StatusName);";
return
new
SqlServerFetchedMessage
(
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
();
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment