Skip to content

Instantly share code, notes, and snippets.

View screamingworld's full-sized avatar

Markus Herkommer screamingworld

View GitHub Profile
using Notifier.WebApi.Models;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Notifier.WebApi.Services
{
public interface INotificationService
{
Task CreateAndSendAsync(string message, CancellationToken cancellationToken);
using System;
namespace Notifier.WebApi.Models
{
public class NotificationModel
{
public string Message { get; set; }
public DateTime DateTime { get; set; }
}
}
{
"ApplicationInsightsSettings": {
"InstrumentationKey": "<INSTRUMENTATION_KEY_AZURE_PORTAL>"
},
"AzureTableSettings": {
"ConnectionString": "<CONNECTION_STRING_AZURE_PORTAL>"
},
"EventHubSettings": {
"ConnectionString": "<CONNECTION_STRING_AZURE_PORTAL>"
}
{
"Logging": {
"LogLevel": {
"Default": "Information"
}
},
"ApplicationInsights": {
"InstrumentationKey": "<OVERRIDE IN USERSECRETS>"
},
"StorageSettings": {
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>Notifier.WebApi</AssemblyName>
<RootNamespace>Notifier.WebApi</RootNamespace>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<OutputType>Exe</OutputType>
<UserSecretsId>notifier-webapi-6fd34aeb-1b78-4492-86dd-a5aa00ce38cd</UserSecretsId>
</PropertyGroup>