Can I use publish & subscribe from 2 projects?
I write MessageHub functions (have custom publish & subscribe function) to the library(dll) and import into PublishProject and SubscribeProject like this:
public async Task<Guid> SubscribeMsg(Func<object> MsgFunc)public async Task<bool> PublishMsg(Func<Models.Message> MsgFunc)
In SubscribeProject, I call the SubscribeMsg function of dll and PublishProject calls the PublishMsg function.
SubscribeMsg does not receive msg from MessageHub. Plz tell me my example is right or wrong with your lib? And how can i interact Publish & Subscribe if It call from difference project.
Thanks.
Can I use publish & subscribe from 2 projects? I write MessageHub functions (have custom publish & subscribe function) to the library(dll) and import into PublishProject and SubscribeProject like this:
public async Task<Guid> SubscribeMsg(Func<object> MsgFunc)
public async Task<bool> PublishMsg(Func<Models.Message> MsgFunc)
In SubscribeProject, I call the
SubscribeMsg
function of dll and PublishProject calls thePublishMsg
function. SubscribeMsg does not receive msg from MessageHub. Plz tell me my example is right or wrong with your lib? And how can i interact Publish & Subscribe if It call from difference project. Thanks.