This file contains hidden or 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 struct Attempt<TFailure, TSuccess> | |
| { | |
| public bool Succeeded { get; set; } | |
| public TFailure Failure { get; set; } | |
| public TSuccess Success { get; set; } | |
| public Attempt(TFailure failure) | |
| { | |
| this.Succeeded = false; | |
| this.Failure = failure; |
This file contains hidden or 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
| //IdentityContext | |
| public int override SaveChanges() | |
| { | |
| //será feito um único commit, assim se a criação do usuário falhar não será incluido o anunciante | |
| return 0; | |
| } | |
| public int SalvarAlteracoes() | |
| { | |
| base.SaveChanges(); |
This file contains hidden or 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 ServiceStack.Redis; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Redis | |
| { | |
| public interface ICacheManager<T> |
This file contains hidden or 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 Conta | |
| { | |
| public decimal Valor { get; set; } | |
| public decimal? ValorDesconto { get; set; } | |
| public DateTime DataVencimento { get; set; } | |
| public string LinhaDigitavel { get; set; } | |
| } | |
| public interface IProvedorPagamento | |
| { |