本文整理汇总了C#中Ws.Services.ProtocolVersion类的典型用法代码示例。如果您正苦于以下问题:C# ProtocolVersion类的具体用法?C# ProtocolVersion怎么用?C# ProtocolVersion使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProtocolVersion类属于Ws.Services命名空间,在下文中一共展示了ProtocolVersion类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: SimpleDeviceHost
public SimpleDeviceHost(ProtocolVersion version) : base(version)
{
// Add ServiceNamespace. Set ServiceID and ServiceTypeName
ServiceNamespace = new WsXmlNamespace("sim", "http://schemas.example.org/SimpleService");
ServiceID = "urn:uuid:3cb0d1ba-cc3a-46ce-b416-212ac2419b51";
ServiceTypeName = "SimpleDeviceType";
}
开发者ID:awakegod,项目名称:NETMF-LPC,代码行数:7,代码来源:SimpleDeviceHost.cs
示例2: DpwsWseSubscriptionMgr
/// <summary>
/// Creates an instance of the Subscription manager class.
/// </summary>
/// <remarks>
/// The device manages an instance of this class on behalf of the device. A device developer
/// must use the static Device.SubScriptionMgr.FireEvent method to fire events from an event
/// source.
/// </remarks>
public DpwsWseSubscriptionMgr(Binding binding, ProtocolVersion version)
{
m_binding = binding.Clone();
m_version = version;
m_reqChannel = binding.CreateClientChannel(new ClientBindingContext(version));
}
开发者ID:awakegod,项目名称:NETMF-LPC,代码行数:15,代码来源:DpwsWseSubscriptionMgr.cs
示例3: SimpleServiceClientProxy
public SimpleServiceClientProxy(Binding binding, ProtocolVersion version) :
base(binding, version)
{
// Set client endpoint address
m_requestChannel = m_localBinding.CreateClientChannel(new ClientBindingContext(m_version));
}
开发者ID:awakegod,项目名称:NETMF-LPC,代码行数:7,代码来源:SimpleServiceClientProxy.cs
示例4: HelloWCFService
public HelloWCFService(ProtocolVersion v)
: base(v)
{
// Add ServiceNamespace. Set ServiceID and ServiceTypeName
ServiceNamespace = new WsXmlNamespace("h", "http://schemas.example.org/HelloWCF");
ServiceID = "urn:uuid:3cb0d1ba-cc3a-46ce-b416-212ac2419b51";
ServiceTypeName = "HelloWCFDeviceType";
}
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:8,代码来源:ServiceHelloWCFHostedService.cs
示例5: DpwsDiscoveryClient
/// <summary>
/// Creates and instance of the DpwsDiscoveryClient class.
/// </summary>
internal DpwsDiscoveryClient(DpwsClient parent, ProtocolVersion v)
{
// Discovery Port defined by http://www.iana.org/assignments/port-numbers as Web Services for Devices
m_discoResponsePort = 5357;
m_receiveTimeout = 5000;
m_version = v;
m_parent = parent;
m_random = new Random();
}
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:12,代码来源:DpwsDiscoClient.cs
示例6: DpwsDiscoveryClient
/// <summary>
/// Creates and instance of the DpwsDiscoveryClient class.
/// </summary>
internal DpwsDiscoveryClient(DpwsClient parent, ProtocolVersion v)
{
// Arbitrary available port value for default ws-discovery response port
m_discoResponsePort = 15357;
m_receiveTimeout = 5000;
m_version = v;
m_parent = parent;
m_random = new Random();
}
开发者ID:trfiladelfo,项目名称:MicroFrameworkSDK-Mono,代码行数:12,代码来源:DpwsDiscoClient.cs
示例7: DpwsHostedService
//--//
/// <summary>
/// Creates and instance of the HostedService class.
/// </summary>
public DpwsHostedService(ProtocolVersion v)
{
m_threadLock = new object();
m_endpointRefs = new WsWsaEndpointRefs();
m_serviceOperations = new WsServiceOperations();
m_eventSources = new DpwsWseEventSources();
m_prefixCounter = 0;
m_blockingCall = true;
m_version = v;
}
开发者ID:trfiladelfo,项目名称:MicroFrameworkSDK-Mono,代码行数:15,代码来源:DpwsHostedService.cs
示例8: AttachmentService
// Constructor sets service properties and defines operations
public AttachmentService(ProtocolVersion version) : base(version)
{
// Add ServiceNamespace. Set ServiceID and ServiceTypeName
ServiceNamespace = new WsXmlNamespace("att", AttNamespace);
ServiceID = "urn:uuid:3cb0d1ba-cc3a-46ce-b416-212ac2419b92";
ServiceTypeName = "AttachmentService";
// Add service operations
ServiceOperations.Add(new WsServiceOperation(AttNamespace, "OneWayAttachment"));
ServiceOperations.Add(new WsServiceOperation(AttNamespace, "TwoWayAttachmentRequest"));
}
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:12,代码来源:AttachmentService.cs
示例9: DpwsDiscoClientService
//--//
public DpwsDiscoClientService(DpwsClient client, ProtocolVersion version)
{
m_client = client;
m_threadLock = new object();
m_version = version;
m_messageCheck = new WsMessageCheck();
// Add discovery Hello ServiceOperations
m_discoCallbacks = new WsServiceOperations();
m_discoCallbacks.Add(new WsServiceOperation(m_version.DiscoveryNamespace, "Hello"));
m_discoCallbacks.Add(new WsServiceOperation(m_version.DiscoveryNamespace, "Bye"));
}
开发者ID:awakegod,项目名称:NETMF-LPC,代码行数:15,代码来源:DpwsDiscoClientService.cs
示例10: EventingService
// Constructor sets service properties and adds event sources
public EventingService(ProtocolVersion version) : base(version)
{
// Add ServiceNamespace. Set ServiceID and ServiceTypeName
ServiceNamespace = new WsXmlNamespace("evnt", "http://schemas.example.org/EventingService");
ServiceID = "urn:uuid:3cb0d1ba-cc3a-46ce-b416-212ac2419b91";
ServiceTypeName = "EventingService";
// Add event sources
EventSources.Add(new DpwsWseEventSource("evnt", "http://schemas.example.org/EventingService", "SimpleEvent"));
EventSources.Add(new DpwsWseEventSource("evnt", "http://schemas.example.org/EventingService", "IntegerEvent"));
this.AddEventServices();
// Start the event simulator
StartEventSimulator();
}
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:16,代码来源:EventingService.cs
示例11: EventingServiceClientProxy
public EventingServiceClientProxy(Binding binding, ProtocolVersion version, IEventingServiceCallback callbackHandler) :
base(binding, version)
{
// Set the client callback implementation property
m_eventHandler = callbackHandler;
// Set client endpoint address
m_requestChannel = m_localBinding.CreateClientChannel(new ClientBindingContext(m_version));
// Add client callback operations and event source types
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/EventingService", "SimpleEvent"));
EventSources.Add(new DpwsServiceType("SimpleEvent", "http://schemas.example.org/EventingService"));
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/EventingService", "IntegerEvent"));
EventSources.Add(new DpwsServiceType("IntegerEvent", "http://schemas.example.org/EventingService"));
}
开发者ID:trfiladelfo,项目名称:MicroFrameworkSDK-Mono,代码行数:15,代码来源:EventingServiceClientProxy.cs
示例12: SimpleService
// Constructor sets service properties and defines operations and adds event sources
public SimpleService(ProtocolVersion version) : base(version)
{
// Add ServiceNamespace. Set ServiceID and ServiceTypeName
ServiceNamespace = new WsXmlNamespace("sim", "http://schemas.example.org/SimpleService");
ServiceID = "urn:uuid:3cb0d1ba-cc3a-46ce-b416-212ac2419b90";
ServiceTypeName = "SimpleService";
// Add service operations
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/SimpleService", "OneWay"));
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/SimpleService", "TwoWayRequest"));
// Add event sources
DpwsWseEventSource SimpleEvent = new DpwsWseEventSource("sim", "http://schemas.example.org/EventingService", "SimpleEvent");
EventSources.Add(SimpleEvent);
this.AddEventServices();
}
开发者ID:awakegod,项目名称:NETMF-LPC,代码行数:17,代码来源:SimpleService.cs
示例13: ServiceHelloWCF
public ServiceHelloWCF(IServiceHelloWCF service, ProtocolVersion version) :
base(version)
{
// Set the service implementation properties
m_service = service;
// Set base service properties
ServiceNamespace = new WsXmlNamespace("ser", "http://localhost/ServiceHelloWCF");
ServiceID = "urn:uuid:1ef46552-0532-4e74-8c9c-635e126924a1";
ServiceTypeName = "ServiceHelloWCF";
// Add service types here
ServiceOperations.Add(new WsServiceOperation("http://localhost/ServiceHelloWCF/IServiceHelloWCF", "HelloWCF"));
// Add event sources here
}
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:16,代码来源:ServiceHelloWCFHostedService.cs
示例14: EventingService
public EventingService(ProtocolVersion version) :
base(version)
{
// Set base service properties
ServiceNamespace = new WsXmlNamespace("eve", "http://schemas.example.org/EventingService");
ServiceID = "urn:uuid:cd35d6ba-3e2f-440b-bc2f-b7c375dc6536";
ServiceTypeName = "EventingService";
// Add service types here
// Add event sources here
EventSources.Add(new DpwsWseEventSource("eve", "http://schemas.example.org/EventingService", "SimpleEvent"));
EventSources.Add(new DpwsWseEventSource("eve", "http://schemas.example.org/EventingService", "IntegerEvent"));
this.AddEventServices();
}
开发者ID:awakegod,项目名称:NETMF-LPC,代码行数:16,代码来源:EventingServiceHostedService.cs
示例15: IServiceHelloWCF
public IServiceHelloWCF(IIServiceHelloWCF service, ProtocolVersion version) :
base(version)
{
// Set the service implementation properties
m_service = service;
// Set base service properties
ServiceNamespace = new WsXmlNamespace("ise", "http://localhost/ServiceHelloWCF");
ServiceID = "urn:uuid:f4c30207-c2cb-493c-8a44-776c1e0ecc7e";
ServiceTypeName = "IServiceHelloWCF";
// Add service types here
ServiceOperations.Add(new WsServiceOperation("http://localhost/ServiceHelloWCF/IServiceHelloWCF", "HelloWCF"));
// Add event sources here
}
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:16,代码来源:ServiceHelloWCFHostedService.cs
示例16: AttachmentService
public AttachmentService(IAttachmentService service, ProtocolVersion version) :
base(version)
{
// Set the service implementation properties
m_service = service;
// Set base service properties
ServiceNamespace = new WsXmlNamespace("att", "http://schemas.example.org/AttachmentService");
ServiceID = "urn:uuid:6a97c339-8d5e-4c2e-a8a3-d4d109983c8a";
ServiceTypeName = "AttachmentService";
// Add service types here
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/AttachmentService", "OneWayAttachment"));
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/AttachmentService", "TwoWayAttachment"));
// Add event sources here
}
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:17,代码来源:AttachmentServiceHostedService.cs
示例17: SimpleService
public SimpleService(ISimpleService service, ProtocolVersion version) :
base(version)
{
// Set the service implementation properties
m_service = service;
// Set base service properties
ServiceNamespace = new WsXmlNamespace("sim", "http://schemas.example.org/SimpleService");
ServiceID = "urn:uuid:5b0dd589-9f8c-4c23-b797-01ca3092b1ed";
ServiceTypeName = "SimpleService";
// Add service types here
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/SimpleService", "OneWay"));
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/SimpleService", "TwoWay"));
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/SimpleService", "TypeCheck"));
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/SimpleService", "AnyCheck"));
// Add event sources here
}
开发者ID:awakegod,项目名称:NETMF-LPC,代码行数:19,代码来源:SimpleServiceHostedService.cs
示例18: TestService
public TestService(string guid, ProtocolVersion version) : base(version)
{
// Add ServiceNamespace. Set ServiceID and ServiceTypeName
ServiceNamespace = new WsXmlNamespace("sim", "http://schemas.example.org/SimpleService");
ServiceID = "urn:uuid:" + guid;
ServiceTypeName = "TestService";
// Add additional namesapces if needed
// example: Namespaces.Add("someprefix", "http://some/Namespace");
// Add service operations
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/SimpleService", "OneWay"));
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/SimpleService", "TwoWayRequest"));
// Add event sources
DpwsWseEventSource SimpleEvent = new DpwsWseEventSource("sim", "http://schemas.example.org/EventingService", "SimpleEvent");
EventSources.Add(SimpleEvent);
this.AddEventServices();
}
开发者ID:awakegod,项目名称:NETMF-LPC,代码行数:19,代码来源:TestService.cs
示例19: DpwsDeviceDiscoService
//--//
public DpwsDeviceDiscoService(ProtocolVersion v) : base(v)
{
string wsdNamespace = v.DiscoveryNamespace;
// Set the service type name to internal to hide from discovery services
ServiceTypeName = "Internal";
// Set service namespace
ServiceNamespace = new WsXmlNamespace(WsNamespacePrefix.Wsd, wsdNamespace);
// Set endpoint address
EndpointAddress = v.DiscoveryWellKnownAddress;
// Add Discovery service operations
ServiceOperations.Add(new WsServiceOperation(wsdNamespace, "Probe"));
ServiceOperations.Add(new WsServiceOperation(wsdNamespace, "Resolve"));
m_discovery = new DpwsDeviceDiscovery(v);
}
开发者ID:awakegod,项目名称:NETMF-LPC,代码行数:21,代码来源:DpwsDeviceDiscoService.cs
示例20: EventingServiceClientProxy
public EventingServiceClientProxy(Binding binding, ProtocolVersion version, IEventingServiceCallback callbackHandler) :
base(binding, version)
{
// Set the client callback implementation property
m_eventHandler = callbackHandler;
// Set client endpoint address
m_requestChannel = m_localBinding.CreateClientChannel(new ClientBindingContext(m_version));
// Add client callback operations and event source types
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/EventingService", "SimpleEvent"));
EventSources.Add(new DpwsServiceType("SimpleEvent", "http://schemas.example.org/EventingService"));
ServiceOperations.Add(new WsServiceOperation("http://schemas.example.org/EventingService", "IntegerEvent"));
EventSources.Add(new DpwsServiceType("IntegerEvent", "http://schemas.example.org/EventingService"));
// Add eventing SubscriptionEnd ServiceOperations. By default Subscription End call back to this client
ServiceOperations.Add(new WsServiceOperation(WsWellKnownUri.WseNamespaceUri, "SubscriptionEnd"));
this.StartEventListeners();
}
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:20,代码来源:EventingServiceClientProxy.cs
注:本文中的Ws.Services.ProtocolVersion类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论