- Open dbeaver:
Help > install new software > Click Add
Name: DevStyle Theme
Location**: https://www.genuitec.com/updates/devstyle/ci/
- Check
- DevStyle Features
| { | |
| "notificationDate": "2022-04-22T11:19:23.246Z", | |
| "notificationMessage": "Peace at home, peace at world!", | |
| "notificationType": 2 | |
| } |
| namespace MasstransitDemo.Shared; | |
| public enum NotificationType | |
| { | |
| Email, | |
| Push, | |
| Sms | |
| } |
| namespace MasstransitDemo.Shared; | |
| public interface INotificationCreated | |
| { | |
| DateTime NotificationDate { get; } | |
| string NotificationMessage { get; } | |
| NotificationType NotificationType { get; } | |
| } |
| using MassTransit; | |
| using Microsoft.Extensions.Hosting; | |
| using System.Reflection; | |
| var builder = Host.CreateDefaultBuilder(args); | |
| builder.ConfigureServices((hostContext, services) => | |
| { | |
| services.AddMassTransit(busConfigurator => | |
| { |
| using MassTransit; | |
| using MasstransitDemo.Shared; | |
| using System.Text.Json; | |
| namespace MasstransitDemo.Consumer; | |
| public class NotificationCreatedConsumer : IConsumer<INotificationCreated> | |
| { | |
| public async Task Consume(ConsumeContext<INotificationCreated> context) | |
| { |
| using MasstransitDemo.Shared; | |
| namespace MasstransitDemo.Api.Models | |
| { | |
| public class NotificationDto | |
| { | |
| public DateTime NotificationDate { get; set; } | |
| public string NotificationMessage { get; set; } | |
| public NotificationType NotificationType { get; set; } | |
| } |
| version: '3.4' | |
| services: | |
| masstransitdemo.api: | |
| image: ${DOCKER_REGISTRY-}masstransitdemoapi | |
| build: | |
| context: . | |
| dockerfile: MasstransitDemo.Api/Dockerfile | |
| ports: | |
| - '7047:443' |
| using MassTransit; | |
| var builder = WebApplication.CreateBuilder(args); | |
| builder.Services.AddControllers(); | |
| builder.Services.AddEndpointsApiExplorer(); | |
| builder.Services.AddSwaggerGen(); | |
| builder.Services.AddMassTransit(busConfigurator => | |
| { |
| using MassTransit; | |
| using MasstransitDemo.Api.Models; | |
| using MasstransitDemo.Shared; | |
| using Microsoft.AspNetCore.Mvc; | |
| namespace MasstransitDemo.Api.Controllers; | |
| [Route("api/[controller]")] | |
| [ApiController] | |
| public class NotificationController : ControllerBase |
Help > install new software > Click Add
Name: DevStyle Theme
Location**: https://www.genuitec.com/updates/devstyle/ci/