This file contains 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 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); |
This file contains 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; | |
namespace Notifier.WebApi.Models | |
{ | |
public class NotificationModel | |
{ | |
public string Message { get; set; } | |
public DateTime DateTime { get; set; } | |
} | |
} |
This file contains 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
{ | |
"ApplicationInsightsSettings": { | |
"InstrumentationKey": "<INSTRUMENTATION_KEY_AZURE_PORTAL>" | |
}, | |
"AzureTableSettings": { | |
"ConnectionString": "<CONNECTION_STRING_AZURE_PORTAL>" | |
}, | |
"EventHubSettings": { | |
"ConnectionString": "<CONNECTION_STRING_AZURE_PORTAL>" | |
} |
This file contains 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
{ | |
"Logging": { | |
"LogLevel": { | |
"Default": "Information" | |
} | |
}, | |
"ApplicationInsights": { | |
"InstrumentationKey": "<OVERRIDE IN USERSECRETS>" | |
}, | |
"StorageSettings": { |
This file contains 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
<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> |
NewerOlder