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; | |
using System.Reflection; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using MediatR; | |
using Microsoft.Extensions.Logging; | |
using Polly; | |
namespace Foo.Bar | |
{ |
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; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using MediatR; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace ConsoleApp3 | |
{ | |
public class Program | |
{ |
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
public class BarService | |
{ | |
public DateTime Now { get; } = DateTime.UtcNow; | |
} | |
public class FooService | |
{ | |
private readonly BarService _barService; | |
public FooService(BarService barService) |
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.Diagnostics; | |
using System.Reflection; | |
namespace Novusoft.Fms.Templates | |
{ | |
public static class DebuggableAssemblyExtensions | |
{ | |
private static readonly FieldInfo _debuggingModeField = typeof(DebuggableAttribute).GetField("m_debuggingModes", BindingFlags.NonPublic | BindingFlags.Instance); | |
/// <summary> |
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
public class ClassA | |
{ | |
public Task TheTask; | |
public string Result; | |
public ClassA() | |
{ | |
TheTask = SomeLongMethod(); | |
} |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using Microsoft.Framework.Runtime; | |
namespace SomeApp | |
{ | |
public class TypeFinder | |
{ |