Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the service contract for LogReceiverTarget as one way #565

Merged
2 commits merged into from
Feb 13, 2015
Merged

Set the service contract for LogReceiverTarget as one way #565

2 commits merged into from
Feb 13, 2015

Conversation

MartinTherriault
Copy link
Contributor

Changed the service contract for the LogReceiverTarget to be one way. This will allow the messages to be multicast through a WCF routing service.

See issue #561 for more details.

@ghost
Copy link

ghost commented Feb 9, 2015

Thanks for the pull request. Will this change be breaking?

@MartinTherriault
Copy link
Contributor Author

Yes you are right. I don't know what I was thinking. I will make some changes to allow the selection of the service contract through an optional property of the LogReceiverTarget, with the default value being the current two-way contract. This way it will be non breaking and will support the feature I need for multicast.

@304NotModified 304NotModified added the enhancement Improvement on existing feature label Feb 10, 2015
…ight way. By default, the target still use the two way contract, so it doesn't change anything. But a new optional property was added to the target to specify which contract to use. The one way contract has a new set of interfaces, so to use it, these new interfaces must be used/implemented instead of the old ones.
@ghost
Copy link

ghost commented Feb 13, 2015

Thanks for the pull request, it looks good.

ghost pushed a commit that referenced this pull request Feb 13, 2015
Set the service contract for LogReceiverTarget as one way
@ghost ghost merged commit ea2e799 into NLog:master Feb 13, 2015
@ghost ghost added this to the 4.0 milestone Feb 13, 2015
@304NotModified
Copy link
Member

Is #106 related?

@MartinTherriault
Copy link
Contributor Author

Yes #106 is about the same thing (IsOneWay property) in a different usage scenario (MSMQ). The changes I made should allow it to works with MSMQ when the new property of the target is set.

@304NotModified
Copy link
Member

Thanks @MartinTherriault

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement on existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants