Questions tagged [kephas]
18 questions
1
vote
2 answers
I have to integrate ServiceStack together with Kephas. How do I make them both play together with Dependency Injection?
ServiceStack uses a dialect of Funq (no support for metadata), where Kephas uses one of MEF/Autofac (requires metadata support). My question has two parts:
How to make ServiceStack and Kephas use one DI container, if this is possible?
Depending on…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
How does Kephas integrate with ASP.NET Core?
So much I could understand, Kephas does not provide its own DI container, but it builds adapters on existing ones (Kephas has its own dependecy injection container. Why another framework, why not use an existing one?). Existing adapters are for…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
Cannot use constructors in open generic services with Kephas
Somehow I cannot get to make it work having a service exported as open generic with an implementation with a constructor. I tried to add the [CompositionConstructor] attribute to it to no avail. It throws something…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
What is PreserveThreadContext() when calling async functions in Kephas?
I noticed in all Kephas examples that, when invoking async methods, at the end there is a call to PreserveThreadContext(). What does this do?
Some example:
var result = await dataContext.Query()
…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
How is the DI relative to constructor and/or property injection solved in Kephas?
I noticed that most DI frameworks use the constructor approach, but some support also setting dependencies through properties. How does Kephas regard this problem and what built-in means are provided for that? Disclaimer: I think about supporting…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
Is Kephas.Data some kind of ORM?
Digging more through the Kephas Framework I noticed that Kephas.Data provides a functionality similar to that of classical ORMs. However, I did not find any kind of documentation about how to connect to databases or, at least, to clarify whether my…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
What is the difference between AmbientServices and CompositionContext in Kephas?
From what I noticed, they do pretty much the same thing, provide services in form of IoC/DI. However, IAmbientServices has a member of type ICompositionContext. I don't really get the difference between the two of them and why are they aggregated…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
The Kephas.Model package seems a bit heavy weight for my requirements of extensible metadata. Is there a lighter alternative?
My requirement is to use some kind of metadata system for the entities we use, but extensible, meaning that we need to support some kind of custom metadata additionally to querying for properties and methods. The standard Type/TypeInfo classes are…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
How can I register services in Kephas using a fluent API?
I want to preserve the DI abstraction layer Kephas provides, but in my particular case I need to register a service which is imported from a third-party library. Given this, I cannot annotate the service with the [AppServiceContract] attribute…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
Is there a possibility to specify a service metadata attribute to be applied to all services in Kephas?
Currently there is the possibility to declare the metadata attribute collected for service implementations at service contract level. In my case, I have a pattern for a bunch of services and I need to use the same metadata attribute for all of them.…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
Is there a possibility to control the Expando class to not allow adding properties/members under certain conditions?
As far as I can tell, the Expando class in Kephas allows adding new members on the fly. Unlike the ExpandoObject in .NET, I noticed it is not sealed, so I could change its behavior, but I don't really know how.
[EDITED]
My scenario is to make the…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
How can I integrate my current logging infrastructure with Kephas?
My current project needs to be rearchitected and, so far, I like how Kephas sets the bases for applications generally (being licensed under MIT was crucial in evaluating it). However, we should do things incrementally, otherwise I'm afraid we will…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
Am I forced into using the attributed service registration in Kephas?
The attributed service registration in Kephas is a nice feature, but am I forced into using it? I mean, because Kephas provides only an abstraction layer over the actual DI/IoC implementation, it cannot provide all the features specific DI…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
Kephas has its own dependecy injection container. Why another framework, why not use an existing one?
When taking a look at Kephas framework these days, I noticed it provides its own dependency injection container. There are so many dependency injection frameworks on the market now, why bring your own implementation? Isn't that just reinventing the…

Auguste Leroi
- 215
- 1
- 7
1
vote
1 answer
How to provide a different strategy for loading application assemblies in Kephas bootstrapper
The default implementation of loading the application assemblies in a Kephas application is to include all assemblies found in the application folder. What if I need to provide a different folder, or if I want to support plugins? How can I specify a…

Auguste Leroi
- 215
- 1
- 7