Comments (2)
opa!
ja utilizei e foi mais ou menos assim
https://thedavidmasters.com/2019/01/30/using-autofac-in-azure-functions/
from equinoxproject.
Fala Bruno...
Olha.. avançou..
Como você configurou o contexto?
Eu fiz assim:
DependencyInjection.Initialize(builder =>
{
builder.RegisterType<CustomerRepository>().As<ICustomerRepository>();
builder.RegisterType<EquinoxContext>().InstancePerRequest();
}, functionName);
Recebo esse erro
Executed 'ConsultaTimeTrigger' (Failed, Id=ee858e2a-c1b0-4e8d-afbb-ac16d7e8fe16, Duration=126ms)
[2020-11-27T20:18:31.457Z] System.Private.CoreLib: Exception while executing function: ConsultaTimeTrigger. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'teste'. Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = CustomerRepository (ReflectionActivator), Services = [IntegraFacil.Domain.Interfaces.ICustomerRepository], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> Unable to resolve the type 'IntegraFacil.Infra.Data.Context.EquinoxContext' because the lifetime scope it belongs in can't be located. The following services are exposed by this registration:
- IntegraFacil.Infra.Data.Context.EquinoxContext
Nao sei se passou por isso.
from equinoxproject.
Related Issues (20)
- 为什么只有事件保存,没有事件查询,希望通过DynamicApiControllerInfo根据Serivce 自动生成WebAPI HOT 1
- hello,where is identity context? How to use
- CRUD para um Aggregate com Child Enity HOT 2
- Some services are not able to be constructed (Error while validating the service descriptor) HOT 2
- Essa arquitetura CQRS + ES ainda é considerada válida? HOT 3
- Need migration commands to start with the projects HOT 1
- Api generating an invalid JTW signature HOT 1
- Customizar IdentityUser HOT 1
- Ajuda para teste Teste de unidade para o CommandHandler e assert do evento publicado HOT 1
- implement business rules involving multiple entities HOT 1
- When updating Identity Migration in the Equinox.UI.Web layer an error is appearing that the object of type ApplicationDbContext cannot be created HOT 8
- Relate in EquinoxContext AspNetUsers with Employee HOT 1
- Why is ApplicationDbContext.cs inside Equinox.UI.Web project? this is nonsense HOT 1
- customer history api non consistent with the name between API and Web project
- EquinoxProject is not sample of EventSourcing, but sample of audith log
- Doubt in migrations HOT 1
- update-database HOT 2
- Project still active? HOT 2
- Update DataBase HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from equinoxproject.