private MessageOperation() { validationMessage = StaticKernel.Get <IValidationMessage>(); }
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))); }
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))); }