Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

32 lines
1.4 KiB
C#

//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------
namespace System.ServiceModel.Discovery.Version11
{
using System.ServiceModel;
[ServiceContract(
Name = ProtocolStrings.ContractNames.DiscoveryAdhocContractName,
Namespace = ProtocolStrings.Version11.Namespace,
CallbackContract = typeof(IDiscoveryResponseContract11))]
interface IDiscoveryContractAdhoc11
{
[OperationContract(Action = ProtocolStrings.Version11.ProbeAction, IsOneWay = true)]
void ProbeOperation(ProbeMessage11 request);
[OperationContract(Action = ProtocolStrings.Version11.ProbeAction, IsOneWay = true, AsyncPattern = true)]
IAsyncResult BeginProbeOperation(ProbeMessage11 request, AsyncCallback callback, object state);
void EndProbeOperation(IAsyncResult result);
[OperationContract(Action = ProtocolStrings.Version11.ResolveAction, IsOneWay = true)]
void ResolveOperation(ResolveMessage11 request);
[OperationContract(Action = ProtocolStrings.Version11.ResolveAction, IsOneWay = true, AsyncPattern = true)]
IAsyncResult BeginResolveOperation(ResolveMessage11 request, AsyncCallback callback, object state);
void EndResolveOperation(IAsyncResult result);
}
}