Open rolsonquadras opened 5 years ago
@rolsonquadras @troyronda allow me to explain:
What triggered my comment above is that framework.Aries
now has two attributes for the same thing - services
and protocolSvcCreators
:
Why is this? Just so that Aries.Context()
can keep creating new instances of context.Provider
without instantiating new services?
It's not clear to me if instantiating new dispatcher.Service
s would present a problem. They certainly are not responsible for managing resources (eg. inbound transports, storage), hence perhaps why Aries.Close()
doesn't do anything with them?
@troyronda @rolsonquadras I'm not sure what direction to head in this case. Yes - context needs to be available in order to instantiate the protocol services. However, the user does not (currently) have access to a "default" context that they can use to instantiate their own protocol services and pass in to
framework.New()
. Perhaps we need to expose adefaults.Context()
somewhere?Originally posted by @llorllale in https://github.com/hyperledger/aries-framework-go/pull/201