Skip to content

Instantly share code, notes, and snippets.

@carloscds
Created February 14, 2020 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carloscds/3f2a1f1fa2b1e2818d19341559628653 to your computer and use it in GitHub Desktop.
Save carloscds/3f2a1f1fa2b1e2818d19341559628653 to your computer and use it in GitHub Desktop.
using System;
namespace ExemploNInject
{
public class ExecutaDI
{
private IServico _servico;
public ExecutaDI(IServico servico)
{
_servico = servico;
}
public void Executa()
{
_servico.Executa();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment