Exemplo n.º 1
0
 public static IServiceCollection AddMessageFormatter(this IServiceCollection serviceCollection, MessageOptions messageOptions)
 {
     return(serviceCollection.AddScoped <IMessageService>(serviceProvider =>
     {
         return new MessageService(messageOptions);
     }));
 }
Exemplo n.º 2
0
 public MessageService(MessageOptions messageOptions)
 {
     _messageOptions = messageOptions;
 }