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 LogInjectionModule : Module { | |
protected override void AttachToComponentRegistration(IComponentRegistry registry, | |
IComponentRegistration registration) { | |
registration.Preparing += OnComponentPreparing; | |
var implementationType = registration.Activator.LimitType; | |
var injectors = BuildInjectors(implementationType).ToArray(); | |
if (!injectors.Any()) { | |
return; |
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.Data.Common; | |
using System.Data.Entity; | |
using System.Data.Entity.Infrastructure.Interception; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
namespace Demo |
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.Net; | |
using System.Threading.Tasks; | |
namespace DnsLookup | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |