flowchart TD
subgraph FEATURES
Presentation --> Application
Application --> Domain
Domain --> Infrastructure
Infrastructure --> Database
end
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
/// <summary> | |
/// MassTransit configurations for ASP.NET Core | |
/// </summary> | |
public class ConfigureServicesMassTransit | |
{ | |
/// <summary> | |
/// ConfigureServices | |
/// </summary> | |
/// <param name="services"></param> | |
/// <param name="configuration"></param> |
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
{ | |
"help": "https://go.microsoft.com/fwlink/?linkid=866610", | |
"root": true, | |
"dependentFileProviders": { | |
"add": { | |
"extensionToExtension": { | |
"add": { | |
".razor.css": [ | |
".razor" | |
], |
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
public interface ILocalStorageService | |
{ | |
Task SetAsync<T>(string key, T item) where T: class; | |
Task SetStringAsync(string key, string value); | |
Task<T> GetAsync<T>(string key) where T: class; | |
Task<string> GetStringAsync(string key); |
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
version: '3.1' | |
services: | |
elasticsearch: | |
container_name: elasticsearch | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2 | |
ports: | |
- 9200:9200 | |
volumes: |
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
root = true | |
# Remove the line below if you want to inherit .editorconfig settings from higher directories | |
[*.json] | |
indent_size = 4 | |
indent_style = space | |
tab_width = 4 | |
# C# files | |
[*.cs] |
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
public class TaskExtended | |
{ | |
public static async Task<IEnumerable<T>> WhenAll<T>(params Task<T>[] tasks) | |
{ | |
var allTasks = Task.WhenAll(tasks); | |
try | |
{ | |
return await allTasks; | |
} |
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
public static class AsyncHelpers | |
{ | |
/// <summary> | |
/// Executes an async Task<T> method which has a void return value synchronously | |
/// </summary> | |
/// <param name="task">Task<T> method to execute</param> | |
public static void RunSync(Func<Task> task) | |
{ | |
var oldContext = SynchronizationContext.Current; | |
var synch = new ExclusiveSynchronizationContext(); |
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
public static class TaskHelper | |
{ | |
/// <summary> | |
/// Runs a TPL Task fire-and-forget style, the right way - in the | |
/// background, separate from the current thread, with no risk | |
/// of it trying to rejoin the current thread. | |
/// </summary> | |
public static void RunBg(Func<Task> fn) => Task.Run(fn).ConfigureAwait(false); | |
/// <summary> |
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
{ | |
"$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", | |
"methodDisplay": "method", | |
"methodDisplayOptions": "all" | |
} |
OlderNewer