Skip to content

Instantly share code, notes, and snippets.

@carloscds
Last active February 25, 2020 03:19
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/0d13a30ba6d22fd25b14365bed8cfd2e to your computer and use it in GitHub Desktop.
Save carloscds/0d13a30ba6d22fd25b14365bed8cfd2e to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace InjecaoDependenciaASPNETCore
{
public class Servico : IServico
{
private int contador;
public Servico()
{
contador = 0;
}
public string RetornaValor()
{
contador++;
return $"Servico: {contador}";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment