Skip to content

Instantly share code, notes, and snippets.

Created January 18, 2020 09:47
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
public class MyConnectionManager : IMyConnectionManager
private readonly ILogger<MyConnectionManager> _logger;
private readonly IMyScopedService _myScopedService;
public MyConnectionManager(ILogger<MyConnectionManager> logger, IMyScopedService myScopedService)
_logger = logger;
_myScopedService = myScopedService;
public void DoSomething()
_logger.LogInformation( $"{nameof(MyConnectionManager)} does something");
_logger.LogInformation( $"Calling {nameof(MyScopedService)}.{nameof(MyScopedService.DoSomething)}");
public interface IMyConnectionManager
void DoSomething();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment