This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class MessageHandler : IMessageHandler | |
| { | |
| private IMessageHandler nextHandler; | |
| public void SetNextHandler(IMessageHandler nextHandler) | |
| { | |
| this.nextHandler = nextHandler; | |
| } | |
| public virtual async Task<Message> HandleMessage(Message sourceMessage) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class EventProcessor<TSourceEvent, TSinkEvent> : EventProcessorBase, IEventProcessor | |
| { | |
| protected readonly IEventConsumer<TSourceEvent> consumer; | |
| protected readonly IEventProducer<TSinkEvent> producer; | |
| public EventProcessor( | |
| IEventConsumer<TSourceEvent> consumer, | |
| IEventProducer<TSinkEvent> producer, | |
| params IMessageHandler[] handlers) | |
| : base(handlers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", | |
| "defaultProfile": "{79285a8e-036c-446f-8a9c-78994e34bf76}", | |
| "profiles": [ | |
| { | |
| "background": "#012456", | |
| "backgroundImage": "C:/users/tony/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/RoamingState/darth.gif", | |
| "backgroundImageOpacity": 0.699999988079071, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ports: | |
| - "80:80" | |
| - "443:443" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 1; | |
| events { worker_connections 1024; } | |
| http { | |
| sendfile on; | |
| upstream web-api { | |
| server api:5000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nginx:latest | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| COPY localhost.crt /etc/ssl/certs/localhost.crt | |
| COPY localhost.key /etc/ssl/private/localhost.key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo openssl pkcs12 -export -out localhost.pfx -inkey localhost.key -in localhost.crt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout localhost.key -out localhost.crt -config localhost.conf -passin pass:YourStrongPassword |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [req] | |
| default_bits = 2048 | |
| default_keyfile = localhost.key | |
| distinguished_name = req_distinguished_name | |
| req_extensions = req_ext | |
| x509_extensions = v3_ca | |
| [req_distinguished_name] | |
| countryName = Country Name (2 letter code) | |
| countryName_default = US |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.7" | |
| services: | |
| reverseproxy: | |
| build: | |
| context: ./Nginx | |
| dockerfile: Nginx.Dockerfile | |
| ports: | |
| - "80:80" |