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
d6278538
Commit
d6278538
authored
Nov 26, 2019
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update samples
parent
11d61b46
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
30 deletions
+31
-30
CAP.sln
CAP.sln
+7
-7
Program.cs
samples/Sample.AzureServiceBus.InMemory/Program.cs
+0
-19
ValuesController.cs
...les/Sample.Kafka.InMemory/Controllers/ValuesController.cs
+1
-1
Program.cs
samples/Sample.Kafka.InMemory/Program.cs
+20
-0
Sample.Kafka.InMemory.csproj
samples/Sample.Kafka.InMemory/Sample.Kafka.InMemory.csproj
+1
-1
Startup.cs
samples/Sample.Kafka.InMemory/Startup.cs
+2
-2
appsettings.json
samples/Sample.Kafka.InMemory/appsettings.json
+0
-0
No files found.
CAP.sln
View file @
d6278538
...
...
@@ -66,9 +66,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotNetCore.CAP.AzureService
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DotNetCore.CAP.InMemoryStorage", "src\DotNetCore.CAP.InMemoryStorage\DotNetCore.CAP.InMemoryStorage.csproj", "{58B6E829-C6C8-457C-9DD0-C600650254DF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "
Sample.AzureServiceBus.InMemory", "samples\Sample.AzureServiceBus.InMemory\Sample.AzureServiceBus.InMemory.csproj", "{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8
}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "
DotNetCore.CAP.Dashboard", "src\DotNetCore.CAP.Dashboard\DotNetCore.CAP.Dashboard.csproj", "{56FB261C-67AF-4715-9A46-4FA4FAB91B2C
}"
EndProject
Project("{
FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetCore.CAP.Dashboard", "src\DotNetCore.CAP.Dashboard\DotNetCore.CAP.Dashboard.csproj", "{56FB261C-67AF-4715-9A46-4FA4FAB91B2C
}"
Project("{
9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample.Kafka.InMemory", "samples\Sample.Kafka.InMemory\Sample.Kafka.InMemory.csproj", "{1B0371D6-36A4-4C78-A727-8ED732FDBA1D
}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
...
...
@@ -141,14 +141,14 @@ Global
{58B6E829-C6C8-457C-9DD0-C600650254DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58B6E829-C6C8-457C-9DD0-C600650254DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58B6E829-C6C8-457C-9DD0-C600650254DF}.Release|Any CPU.Build.0 = Release|Any CPU
{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8}.Release|Any CPU.Build.0 = Release|Any CPU
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C}.Release|Any CPU.Build.0 = Release|Any CPU
{1B0371D6-36A4-4C78-A727-8ED732FDBA1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1B0371D6-36A4-4C78-A727-8ED732FDBA1D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1B0371D6-36A4-4C78-A727-8ED732FDBA1D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1B0371D6-36A4-4C78-A727-8ED732FDBA1D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
...
...
@@ -171,8 +171,8 @@ Global
{11563D1A-27CC-45CF-8C04-C16BCC21250A} = {3A6B6931-A123-477A-9469-8B468B5385AF}
{63B2A464-FBEA-42FB-8EFA-98AFA39FC920} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4}
{58B6E829-C6C8-457C-9DD0-C600650254DF} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4}
{1E1E959C-3D0E-45C3-ABCA-DAAACE68AAB8} = {3A6B6931-A123-477A-9469-8B468B5385AF}
{56FB261C-67AF-4715-9A46-4FA4FAB91B2C} = {9B2AE124-6636-4DE9-83A3-70360DABD0C4}
{1B0371D6-36A4-4C78-A727-8ED732FDBA1D} = {3A6B6931-A123-477A-9469-8B468B5385AF}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2E70565D-94CF-40B4-BFE1-AC18D5F736AB}
...
...
samples/Sample.AzureServiceBus.InMemory/Program.cs
deleted
100644 → 0
View file @
11d61b46
using
Microsoft.AspNetCore
;
using
Microsoft.AspNetCore.Hosting
;
namespace
Sample.AzureServiceBus.InMemory
{
public
class
Program
{
public
static
void
Main
(
string
[]
args
)
{
BuildWebHost
(
args
).
Run
();
}
public
static
IWebHost
BuildWebHost
(
string
[]
args
)
=>
WebHost
.
CreateDefaultBuilder
(
args
)
.
UseStartup
<
Startup
>()
.
Build
();
}
}
\ No newline at end of file
samples/Sample.
AzureServiceBus
.InMemory/Controllers/ValuesController.cs
→
samples/Sample.
Kafka
.InMemory/Controllers/ValuesController.cs
View file @
d6278538
...
...
@@ -3,7 +3,7 @@ using System.Threading.Tasks;
using
DotNetCore.CAP
;
using
Microsoft.AspNetCore.Mvc
;
namespace
Sample.
AzureServiceBus
.InMemory.Controllers
namespace
Sample.
Kafka
.InMemory.Controllers
{
[
Route
(
"api/[controller]"
)]
public
class
ValuesController
:
Controller
,
ICapSubscribe
...
...
samples/Sample.Kafka.InMemory/Program.cs
0 → 100644
View file @
d6278538
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.Extensions.Hosting
;
namespace
Sample.Kafka.InMemory
{
public
class
Program
{
public
static
void
Main
(
string
[]
args
)
{
CreateHostBuilder
(
args
).
Build
().
Run
();
}
public
static
IHostBuilder
CreateHostBuilder
(
string
[]
args
)
=>
Host
.
CreateDefaultBuilder
(
args
)
.
ConfigureWebHostDefaults
(
webBuilder
=>
{
webBuilder
.
UseStartup
<
Startup
>();
});
}
}
\ No newline at end of file
samples/Sample.
AzureServiceBus.InMemory/Sample.AzureServiceBus
.InMemory.csproj
→
samples/Sample.
Kafka.InMemory/Sample.Kafka
.InMemory.csproj
View file @
d6278538
...
...
@@ -7,9 +7,9 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\DotNetCore.CAP.AzureServiceBus\DotNetCore.CAP.AzureServiceBus.csproj" />
<ProjectReference Include="..\..\src\DotNetCore.CAP.Dashboard\DotNetCore.CAP.Dashboard.csproj" />
<ProjectReference Include="..\..\src\DotNetCore.CAP.InMemoryStorage\DotNetCore.CAP.InMemoryStorage.csproj" />
<ProjectReference Include="..\..\src\DotNetCore.CAP.Kafka\DotNetCore.CAP.Kafka.csproj" />
<ProjectReference Include="..\..\src\DotNetCore.CAP\DotNetCore.CAP.csproj" />
</ItemGroup>
...
...
samples/Sample.
AzureServiceBus
.InMemory/Startup.cs
→
samples/Sample.
Kafka
.InMemory/Startup.cs
View file @
d6278538
using
Microsoft.AspNetCore.Builder
;
using
Microsoft.Extensions.DependencyInjection
;
namespace
Sample.
AzureServiceBus
.InMemory
namespace
Sample.
Kafka
.InMemory
{
public
class
Startup
{
...
...
@@ -10,7 +10,7 @@ namespace Sample.AzureServiceBus.InMemory
services
.
AddCap
(
x
=>
{
x
.
UseInMemoryStorage
();
x
.
Use
AzureServiceBus
(
"Endpoint=sb://testcap.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=<your-key>
"
);
x
.
Use
Kafka
(
"192.168.2.120:9093
"
);
x
.
UseDashboard
();
});
...
...
samples/Sample.
AzureServiceBus
.InMemory/appsettings.json
→
samples/Sample.
Kafka
.InMemory/appsettings.json
View file @
d6278538
File moved
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