コード例 #1
0
 public ScoreProvider(TamagotchiCompetitionContext ctx, IEventProvider eventProvider, IOptions <AppConfig> appConfig, ILogger <ScoreProvider> logger /*ILoggerFactory factory*/)
 {
     _ctx           = ctx;
     _eventProvider = eventProvider;
     _appConfig     = appConfig;
     if (logger != null)
     {
         _logger = logger;
     }
     //if (factory != null)
     //    _factory = factory;
 }
コード例 #2
0
 public EventProvider(TamagotchiCompetitionContext ctx)
 {
     _ctx = ctx;
 }