Skip to content
Discussion options

You must be logged in to vote

I figured out, the proper way for calling ISession.DialAsync(request) using Asymmetric protocol is ISession.DialAsync<ISessionProtocol<'req, 'res>, 'req, 'res>(request)
I would be hoping in the future ISession.DialAsync simply takes an optional parameter called request, since usually ILibp2pPeerFactoryBuilder has the protocol added and generates IPeerFactory which generates ILocalPeer which generates ISession. If needed I guess several solution can consolidate the experience :

A
1. ISession.DialAsync(Type protocol, ?request) can be a thing
2. ISessionProtocol<'req, 'res> and ISessionProtocol becomes abstract class and sharing IAbstractSessionProtocol for ISession.DialAsync
3. By magic ISe…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Xyncgas
Comment options

@Xyncgas
Comment options

Answer selected by Xyncgas
@Xyncgas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant