Skip to content

Commit ff80892

Browse files
committed
.net code
1 parent 56a2c4b commit ff80892

36 files changed

+17468
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To send our binary Protobuffer data, we will use the same method as Avro configu
4242
Open a new terminal, and use the curl command to register the Debezium MySQL connector. (You may need to escape your double-quotes on windows if you get a parsing error). This will add a connector in our kafka-connect container to listen to database changes in our outbox table.
4343

4444
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" localhost:8083/connectors/ --data-raw '{
45-
"name": "cdc-python-netcore-connector-outbox-2",
45+
"name": "cdc-python-netcore-connector-outbox",
4646
"config": {
4747
"connector.class": "io.debezium.connector.mysql.MySqlConnector",
4848
"database.hostname": "mysql",

docker-compose.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ services:
3838
container_name: cdc-kafka
3939
image: debezium/kafka:1.6
4040
ports:
41-
- 9092:9092
41+
- 9094:9094
4242
environment:
4343
ZOOKEEPER_CONNECT: zookeeper:2181
44-
BOOTSTRAP_SERVERS: kafka:9092
44+
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
45+
KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://127.0.0.1:9094
46+
KAFKA_ADVERTISED_LISTENERS: INSIDE://:9092,OUTSIDE://127.0.0.1:9094
47+
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
4548
depends_on:
4649
- zookeeper
4750
kafka-connect:

netcore/.gitignore

+232
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
x64/
19+
x86/
20+
build/
21+
bld/
22+
bin/
23+
Bin/
24+
obj/
25+
Obj/
26+
27+
# Visual Studio 2015 cache/options directory
28+
.vs/
29+
/wwwroot/dist/
30+
31+
# MSTest test Results
32+
[Tt]est[Rr]esult*/
33+
[Bb]uild[Ll]og.*
34+
35+
# NUNIT
36+
*.VisualState.xml
37+
TestResult.xml
38+
39+
# Build Results of an ATL Project
40+
[Dd]ebugPS/
41+
[Rr]eleasePS/
42+
dlldata.c
43+
44+
*_i.c
45+
*_p.c
46+
*_i.h
47+
*.ilk
48+
*.meta
49+
*.obj
50+
*.pch
51+
*.pdb
52+
*.pgc
53+
*.pgd
54+
*.rsp
55+
*.sbr
56+
*.tlb
57+
*.tli
58+
*.tlh
59+
*.tmp
60+
*.tmp_proj
61+
*.log
62+
*.vspscc
63+
*.vssscc
64+
.builds
65+
*.pidb
66+
*.svclog
67+
*.scc
68+
69+
# Chutzpah Test files
70+
_Chutzpah*
71+
72+
# Visual C++ cache files
73+
ipch/
74+
*.aps
75+
*.ncb
76+
*.opendb
77+
*.opensdf
78+
*.sdf
79+
*.cachefile
80+
81+
# Visual Studio profiler
82+
*.psess
83+
*.vsp
84+
*.vspx
85+
*.sap
86+
87+
# TFS 2012 Local Workspace
88+
$tf/
89+
90+
# Guidance Automation Toolkit
91+
*.gpState
92+
93+
# ReSharper is a .NET coding add-in
94+
_ReSharper*/
95+
*.[Rr]e[Ss]harper
96+
*.DotSettings.user
97+
98+
# JustCode is a .NET coding add-in
99+
.JustCode
100+
101+
# TeamCity is a build add-in
102+
_TeamCity*
103+
104+
# DotCover is a Code Coverage Tool
105+
*.dotCover
106+
107+
# NCrunch
108+
_NCrunch_*
109+
.*crunch*.local.xml
110+
nCrunchTemp_*
111+
112+
# MightyMoose
113+
*.mm.*
114+
AutoTest.Net/
115+
116+
# Web workbench (sass)
117+
.sass-cache/
118+
119+
# Installshield output folder
120+
[Ee]xpress/
121+
122+
# DocProject is a documentation generator add-in
123+
DocProject/buildhelp/
124+
DocProject/Help/*.HxT
125+
DocProject/Help/*.HxC
126+
DocProject/Help/*.hhc
127+
DocProject/Help/*.hhk
128+
DocProject/Help/*.hhp
129+
DocProject/Help/Html2
130+
DocProject/Help/html
131+
132+
# Click-Once directory
133+
publish/
134+
135+
# Publish Web Output
136+
*.[Pp]ublish.xml
137+
*.azurePubxml
138+
# TODO: Comment the next line if you want to checkin your web deploy settings
139+
# but database connection strings (with potential passwords) will be unencrypted
140+
*.pubxml
141+
*.publishproj
142+
143+
# NuGet Packages
144+
*.nupkg
145+
# The packages folder can be ignored because of Package Restore
146+
**/packages/*
147+
# except build/, which is used as an MSBuild target.
148+
!**/packages/build/
149+
# Uncomment if necessary however generally it will be regenerated when needed
150+
#!**/packages/repositories.config
151+
152+
# Microsoft Azure Build Output
153+
csx/
154+
*.build.csdef
155+
156+
# Microsoft Azure Emulator
157+
ecf/
158+
rcf/
159+
160+
# Microsoft Azure ApplicationInsights config file
161+
ApplicationInsights.config
162+
163+
# Windows Store app package directory
164+
AppPackages/
165+
BundleArtifacts/
166+
167+
# Visual Studio cache files
168+
# files ending in .cache can be ignored
169+
*.[Cc]ache
170+
# but keep track of directories ending in .cache
171+
!*.[Cc]ache/
172+
173+
# Others
174+
ClientBin/
175+
~$*
176+
*~
177+
*.dbmdl
178+
*.dbproj.schemaview
179+
*.pfx
180+
*.publishsettings
181+
orleans.codegen.cs
182+
183+
/node_modules
184+
185+
# RIA/Silverlight projects
186+
Generated_Code/
187+
188+
# Backup & report files from converting an old project file
189+
# to a newer Visual Studio version. Backup files are not needed,
190+
# because we have git ;-)
191+
_UpgradeReport_Files/
192+
Backup*/
193+
UpgradeLog*.XML
194+
UpgradeLog*.htm
195+
196+
# SQL Server files
197+
*.mdf
198+
*.ldf
199+
200+
# Business Intelligence projects
201+
*.rdl.data
202+
*.bim.layout
203+
*.bim_*.settings
204+
205+
# Microsoft Fakes
206+
FakesAssemblies/
207+
208+
# GhostDoc plugin setting file
209+
*.GhostDoc.xml
210+
211+
# Node.js Tools for Visual Studio
212+
.ntvs_analysis.dat
213+
214+
# Visual Studio 6 build log
215+
*.plg
216+
217+
# Visual Studio 6 workspace options file
218+
*.opt
219+
220+
# Visual Studio LightSwitch build output
221+
**/*.HTMLClient/GeneratedArtifacts
222+
**/*.DesktopClient/GeneratedArtifacts
223+
**/*.DesktopClient/ModelManifest.xml
224+
**/*.Server/GeneratedArtifacts
225+
**/*.Server/ModelManifest.xml
226+
_Pvt_Extensions
227+
228+
# Paket dependency manager
229+
.paket/paket.exe
230+
231+
# FAKE - F# Make
232+
.fake/

netcore/ClientApp/.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
BROWSER=none

netcore/ClientApp/.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

0 commit comments

Comments
 (0)