Showing the changes to Source/Libraries/GSF.ServiceModel (1 of 147 files). Show all
Unified · Split
| @@ -207,7 +207,7 @@ namespace GSF.ServiceModel · 206 unmodified lines | |||
| 207 | return tcpBinding; | 207 | return tcpBinding; |
| 208 | case "net.p2p": | 208 | case "net.p2p": |
| 209 | // Create binding. | 209 | // Create binding. |
| 210 | #pragma warning disable 612, 618 | 210 | #pragma warning disable 612, 618 |
| 211 | NetPeerTcpBinding p2pBinding = new NetPeerTcpBinding(); | 211 | NetPeerTcpBinding p2pBinding = new NetPeerTcpBinding(); |
| 212 | 212 | ||
| 213 | #if !MONO | 213 | #if !MONO |
| @@ -285,7 +285,8 @@ namespace GSF.ServiceModel · 71 unmodified lines | |||
| 285 | { | 285 | { |
| 286 | // Find contract interface by service type name. | 286 | // Find contract interface by service type name. |
| 287 | Type contract = serviceType.GetInterface("I" + serviceType.Name); | 287 | Type contract = serviceType.GetInterface("I" + serviceType.Name); |
| 288 | if (contract == null) | 288 | |
| 289 | if ((object)contract == null) | ||
| 289 | { | 290 | { |
| 290 | // Fall back to the first interface the service implements. | 291 | // Fall back to the first interface the service implements. |
| 291 | Type[] interfaces = serviceType.GetInterfaces(); | 292 | Type[] interfaces = serviceType.GetInterfaces(); |