Exemplo n.º 1
0
 public QueryService(ITeclynContext context, TeclynApi teclyn, IIocContainer iocContainer, MetadataRepository metadataRepository)
 {
     this.context            = context;
     this.teclyn             = teclyn;
     this.iocContainer       = iocContainer;
     this.metadataRepository = metadataRepository;
 }
Exemplo n.º 2
0
 public EventService(ITeclynContext teclynContext, TimeService timeService, RepositoryService repositoryService, IEventHandlerService eventHandlerService)
 {
     this.teclynContext       = teclynContext;
     this.timeService         = timeService;
     this.repositoryService   = repositoryService;
     this.eventHandlerService = eventHandlerService;
 }
Exemplo n.º 3
0
 public EventService(IDependencyResolver dependencyResolver, ITeclynApi teclynApi, ITeclynContext teclynContext, ITimeService timeService, IEventHandlerService eventHandlerService)
 {
     this._dependencyResolver  = dependencyResolver;
     this._teclynApi           = teclynApi;
     this._teclynContext       = teclynContext;
     this._timeService         = timeService;
     this._eventHandlerService = eventHandlerService;
 }
Exemplo n.º 4
0
 public bool CheckContext(ITeclynContext context, ICommandContextChecker _)
 {
     return(true);
 }
Exemplo n.º 5
0
 public QueryService(ITeclynContext context, IDependencyResolver dependencyResolver)
 {
     this._context            = context;
     this._dependencyResolver = dependencyResolver;
 }
Exemplo n.º 6
0
 public override bool CheckContext(ITeclynContext context, ICommandContextChecker _)
 {
     return(_.Check(this.NewValue != null, "error"));
 }
Exemplo n.º 7
0
 public abstract bool CheckContext(ITeclynContext context, ICommandContextChecker _);
Exemplo n.º 8
0
 public Task <bool> CheckContext(UpdatePostTitle command, ITeclynContext context, ICommandContextChecker _)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 9
0
 public override bool CheckContext(ITeclynContext context, ICommandContextChecker _)
 {
     return(_.Check(contextOk, "You are not allowed to execute this command."));
 }
Exemplo n.º 10
0
 public Task <bool> CheckContext(RegisterUserCommand command, ITeclynContext context, ICommandContextChecker _)
 {
     return(Task.FromResult(true));
 }
Exemplo n.º 11
0
 public Task <bool> CheckContext(ListPosts query, ITeclynContext context, IQueryContextChecker result)
 {
     return(Task.FromResult(true));
 }