Пример #1
0
 private MessageOperation()
 {
     validationMessage = StaticKernel.Get <IValidationMessage>();
 }
Пример #2
0
        protected override IBoardGameServices CreateInstance(IContext context)
        {
            bool withTransaction = (bool)context.Parameters.First(f => f.Name == "withTransaction").GetValue(context, null);

            return(new BoardGameDatabaseUnitOfWork(StaticKernel.Get <IBoardGameDbContext>(), withTransaction));
        }
 public IMatchServiceValidation Bulid()
 {
     return(StaticKernel.Get <IMatchServiceValidation>(new ConstructorArgument("context", context, true)));
 }
Пример #4
0
 public GameOnlineServer()
 {
     this.service = StaticKernel.Get <IGameOnlineService>();
     this.ChoosePlayersToPlayAsync(); // Nie podoba mi się to tutaj
 }
 private T Creator <T>(ref T service) where T : class
 {
     return(service ?? (service = StaticKernel.Get <T>(new ConstructorArgument("context", this.context))));
 }
 public IBoardGameServices Bulid()
 {
     return(StaticKernel.Get <IBoardGameServices>(new ConstructorArgument("withTransaction", withTransaction, true)));
 }