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
| using NATS.Client; | |
| using System; | |
| namespace NatsSub1 | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| // Define variáveis |
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
| using NATS.Client; | |
| using System; | |
| using System.Text; | |
| using System.Threading; | |
| namespace NatsPub1 | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) |
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
| using NATS.Client; | |
| using System; | |
| using System.Text; | |
| namespace NatsSubscriber | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) | |
| { |
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
| using NATS.Client; | |
| using System; | |
| using System.Text; | |
| using System.Threading; | |
| namespace NatsPublisher | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) |
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
| using NATS.Client; | |
| using System; | |
| using System.Text; | |
| using System.Threading; | |
| namespace NatsTest1 | |
| { | |
| internal class Program | |
| { | |
| static void Main(string[] args) |
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
| package com.test1.apptest1wrk.controller; | |
| import org.springframework.web.bind.annotation.GetMapping; | |
| import org.springframework.web.bind.annotation.RestController; | |
| @RestController | |
| public class HelloController { | |
| @GetMapping("/") | |
| public String index() { |
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
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| using var loggerFactory = LoggerFactory.Create(builder => | |
| { | |
| builder | |
| .AddFilter("Microsoft", LogLevel.Warning) | |
| .AddFilter("System", LogLevel.Warning) | |
| .AddFilter("LoggingConsoleApp.Program", LogLevel.Debug) |
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
| using System; | |
| using System.Threading.Tasks; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Hosting; | |
| using Microsoft.Extensions.Logging; | |
| class Program | |
| { | |
| static Task Main(string[] args) | |
| { |
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
| using var loggerFactory = LoggerFactory.Create(builder => | |
| { | |
| builder | |
| .AddFilter("Microsoft", LogLevel.Warning) | |
| .AddFilter("System", LogLevel.Warning) | |
| .AddFilter("LoggingConsoleApp.Program", LogLevel.Debug) | |
| .AddConsole(); | |
| }); | |
| ILogger logger = loggerFactory.CreateLogger<Program>(); |
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
| nasm -f elf64 *.asm; ld -m elf_x86_64 -s -o demo *.o |