-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implentation of Muambator Service #277
Conversation
@@ -15,6 +15,7 @@ | |||
using System.Threading; | |||
using System.Threading.Tasks; | |||
using ShareBook.Helper; | |||
using ShareBook.Service.Muambator; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acho que o controller não precisa nem saber que existe esse serviço.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Posso apagar. Realmente nao e necessario
"RollbarEnvironment": "local", | ||
"Muambator": { | ||
"Token": "" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O que acha de termos um parâmetro active = true/false?
Daí a gente desabilita facilmente nos ambientes de DEV e STG. E a gente teria uma carta na manga pra desabilitar rápido em prod numa situação extrema.
@@ -211,6 +215,8 @@ public void InformTrackingNumber(Guid bookId, string trackingNumber) | |||
if (winnerBookUser == null) | |||
throw new ShareBookException("Vencedor ainda não foi escolhido"); | |||
|
|||
_muambatorService.AddPackageToTrackerAsync(winnerBookUser.User.Email, trackingNumber); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aí aqui vc colocaria um if pra verificar se está ativo ou não. (sugestão)
@@ -0,0 +1,15 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O que significa DTO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Data transfer object. No caso um modelo de transport. Ele nao se encaixa como VM dentro desta arquitetura. E tb nao e uma entidade de negocio,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Entendi. Obrigado.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muito bom amigão. Apenas algumas dúvidas e detalhes.
…d_yarn/acorn-6.4.1 Bump acorn from 6.4.0 to 6.4.1
Development of service which consumes the Muambator service to create a notification about the tracked package.