Skip to content

Commit ccee1d8

Browse files
chore: create application launcher
1 parent 839d18e commit ccee1d8

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/main/kotlin/App.kt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
import entities.events.Event
2+
import application.presenter.EventConsumer
3+
import application.presenter.EventPublisher
4+
import application.services.EventService
5+
import infrastructure.kafka.KafkaPublisher
6+
import infrastructure.signalr.SignalRClient
7+
8+
19
/*
210
* Copyright (c) 2023. Smart Operating Block
311
*
@@ -7,8 +15,13 @@
715
*/
816

917
/**
10-
* Template for kotlin projects.
18+
* The application launcher.
1119
*/
1220
fun main() {
13-
println("Hello World from Kotlin Template")
21+
22+
val publisher: EventPublisher<Event<Any>> = KafkaPublisher()
23+
val consumer: EventConsumer<String> = SignalRClient()
24+
25+
val service: EventService<String> = EventService(publisher, consumer)
26+
service.start()
1427
}

0 commit comments

Comments
 (0)