Senior .NET- och Azure-konsult i Malmö – TOBASK Consulting
OrderService.cs
1using Microsoft.Azure.ServiceBus;
2using System.Threading.Tasks;
3
4public class OrderService
5{
6 private readonly IServiceBusClient _bus;
7 private readonly ICosmosRepository _repo;
8
9 public async Task ProcessOrderAsync(
10 Order order)
11 {
12 var result = await _repo
13 .SaveAsync(order);
14
15 await _bus.PublishAsync(
16 new OrderCreatedEvent(result.Id));
17
18 return result;
19 }
20}
21
22// Azure Function trigger
23[FunctionName("ProcessPayment")]
24public static async Task Run(
25 [ServiceBusTrigger("orders")] string msg,
26 ILogger log)
27{
28 log.LogInformation($"Processing: {msg}");
29 await PaymentService.HandleAsync(msg);
30}
1using Microsoft.Azure.ServiceBus;
2using System.Threading.Tasks;
3
4public class OrderService
5{
6 private readonly IServiceBusClient _bus;
7 private readonly ICosmosRepository _repo;
8
9 public async Task ProcessOrderAsync(
10 Order order)
11 {
12 var result = await _repo
13 .SaveAsync(order);
14
15 await _bus.PublishAsync(
16 new OrderCreatedEvent(result.Id));
17
18 return result;
19 }
20}
21
22// Azure Function trigger
23[FunctionName("ProcessPayment")]
24public static async Task Run(
25 [ServiceBusTrigger("orders")] string msg,
26 ILogger log)
27{
28 log.LogInformation($"Processing: {msg}");
29 await PaymentService.HandleAsync(msg);
30}
C# · .NET 10REST APIUTF-8
hero.techLabelC#·.NET·Azure·REST API·JWT·Docker·Cosmos DB·MongoDB·SQL·Entity Framework·Angular·TypeScript
about.eyebrow
about.title
about.p1
about.p2
about.p3
about.stat1Valueabout.stat1Label
about.stat2Valueabout.stat2Label
about.stat3Valueabout.stat3Label
skills.eyebrow
skills.title
skills.items.backend.title
skills.items.backend.description
C#.NETREST APIJWT
skills.items.azure.title
skills.items.azure.description
Azure Service BusAzure FunctionsWebhooks
skills.items.database.title
skills.items.database.description
Cosmos DBMongoDBSQLEntity Framework
skills.items.frontend.title
skills.items.frontend.description
AngularTypeScript
skills.items.devops.title
skills.items.devops.description
DockerAzure DevOpsCI/CDOn-callIncidenthantering
skills.items.agile.title
skills.items.agile.description
ScrumAgileTeamwork
assignments.eyebrow
assignments.title
assignments.items.ecommerce.category
assignments.items.ecommerce.title
assignments.items.ecommerce.description
assignments.items.ecommerce.detail
C#.NETAzureService BusCosmos DBMongoDBJWTBusiness CentralDocker
assignments.items.insurance.category
assignments.items.insurance.title
assignments.items.insurance.description
assignments.items.insurance.detail
C#.NETAzureSOAPREST APIJWTDocker
assignments.items.sensor.category
assignments.items.sensor.title
assignments.items.sensor.description
assignments.items.sensor.detail
C#.NETAngularTypeScriptDapperSQLDocker
testimonials.eyebrow
testimonials.title
testimonials.items.per.quote
testimonials.items.per.nametestimonials.items.per.title
testimonials.items.magnus.quote
testimonials.items.magnus.nametestimonials.items.magnus.title
testimonials.items.muhamed.quote
testimonials.items.muhamed.nametestimonials.items.muhamed.title

