Esempio n. 1
0
 public object Any(GetClientById request)
 {
     using (var db = DbFactory.OpenDbConnection())
     {
         return(db.SingleById <Client>(request.Id));
     }
 }
Esempio n. 2
0
        private void GetClientByIdHandler(GetClientById input)
        {
            // mixin  DI Args and static args!
            var store = Context.ActorOf(ServiceProvider.For(Context.System).Props <ClientActorStore>("arg1", "arg2"));

            store.Forward(input);
        }
Esempio n. 3
0
        private async Task GetClientByIdHandler(GetClientById input)
        {
            var repository = _clientRepositoryFactory();

            var result = await repository.GetById(input.Id);

            Sender.Tell(new ClientResult(result));
        }