Skip to content

Commit f1ceee7

Browse files
udidahanshlomii
authored andcommitted
Made WcfService and WebService independent of IMessage. Closes 377
1 parent a4d44b3 commit f1ceee7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/integration/NServiceBus.Integration.WCF/IWcfService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace NServiceBus
99
/// <typeparam name="TRequest"></typeparam>
1010
/// <typeparam name="TResponse"></typeparam>
1111
[ServiceContract]
12-
public interface IWcfService<TRequest, TResponse> where TRequest : IMessage
12+
public interface IWcfService<TRequest, TResponse>
1313
{
1414
/// <summary>
1515
/// Sends the message to the messaging endpoint.

src/integration/NServiceBus.Integration.WCF/WcfService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace NServiceBus
1010
/// <typeparam name="TResponse"></typeparam>
1111
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall,
1212
ConcurrencyMode = ConcurrencyMode.Multiple)]
13-
public abstract class WcfService<TRequest, TResponse> : IWcfService<TRequest, TResponse> where TRequest : IMessage
13+
public abstract class WcfService<TRequest, TResponse> : IWcfService<TRequest, TResponse>
1414
{
1515
protected WcfService()
1616
{

src/integration/WebServices/NServiceBus.Integration.WebServices/Webservice.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace NServiceBus
1212
[WebService(Namespace = "http://tempuri.org/")]
1313
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
1414
[ToolboxItem(false)]
15-
public abstract class Webservice<TRequest, TResponse> : WebService where TRequest : IMessage
15+
public abstract class Webservice<TRequest, TResponse> : WebService
1616
{
1717
/// <summary>
1818
/// Static constructor that checks that the type TResponse is an enum.

0 commit comments

Comments
 (0)