C# Class Opc.Ua.BindingFactory

A class that manages a mapping between a URL scheme and a binding.
ファイルを表示 Open project: OPCFoundation/Misc-Tools Class Usage Examples

Public Methods

Method Description
Add ( string uriScheme, Type bindingType ) : void

Adds a binding type to the factory.

BindingFactory ( BindingFactory factory ) : System

Copys an existing factory.

BindingFactory ( Opc.Ua.NamespaceTable namespaceUris, EncodeableFactory factory ) : System

Creates an empty factory.

BindingFactory ( ServiceMessageContext messageContext ) : System

Creates an empty factory.

Contains ( string uriScheme ) : bool

Returns true if a binding exists for the specified schema.

Create ( string uriScheme, EndpointConfiguration configuration ) : System.ServiceModel.Channels.Binding

Creates a discovery binding for the specified URI scheme.

Create ( string uriScheme, EndpointDescription description, EndpointConfiguration configuration ) : System.ServiceModel.Channels.Binding

Creates a session binding for the specified URI scheme.

Create ( string uriScheme, List descriptions, EndpointConfiguration configuration ) : System.ServiceModel.Channels.Binding

Creates a session binding for the specified URI scheme.

Create ( ApplicationConfiguration configuration, ServiceMessageContext context ) : BindingFactory

Creates a binding table from the bindings specified in the application configuration.

Remove ( string uriScheme ) : void

Removes a binding type from the factory.

Private Methods

Method Description
AddDefaultBindings ( Type>.Dictionary table ) : void
BindingFactory ( ) : System

Creates an empty factory.

Create ( ApplicationConfiguration configuration ) : BindingFactory

Method Details

Add() public method

Adds a binding type to the factory.
public Add ( string uriScheme, Type bindingType ) : void
uriScheme string The URI scheme.
bindingType System.Type Type of the binding.
return void

BindingFactory() public method

Copys an existing factory.
public BindingFactory ( BindingFactory factory ) : System
factory BindingFactory The factory.
return System

BindingFactory() public method

Creates an empty factory.
public BindingFactory ( Opc.Ua.NamespaceTable namespaceUris, EncodeableFactory factory ) : System
namespaceUris Opc.Ua.NamespaceTable The namespace uris.
factory EncodeableFactory The factory.
return System

BindingFactory() public method

Creates an empty factory.
public BindingFactory ( ServiceMessageContext messageContext ) : System
messageContext ServiceMessageContext The message context.
return System

Contains() public method

Returns true if a binding exists for the specified schema.
public Contains ( string uriScheme ) : bool
uriScheme string The URI scheme.
return bool

Create() public method

Creates a discovery binding for the specified URI scheme.
public Create ( string uriScheme, EndpointConfiguration configuration ) : System.ServiceModel.Channels.Binding
uriScheme string The URI scheme.
configuration EndpointConfiguration The configuration.
return System.ServiceModel.Channels.Binding

Create() public method

Creates a session binding for the specified URI scheme.
public Create ( string uriScheme, EndpointDescription description, EndpointConfiguration configuration ) : System.ServiceModel.Channels.Binding
uriScheme string The URI scheme.
description EndpointDescription The description.
configuration EndpointConfiguration The configuration.
return System.ServiceModel.Channels.Binding

Create() public method

Creates a session binding for the specified URI scheme.
public Create ( string uriScheme, List descriptions, EndpointConfiguration configuration ) : System.ServiceModel.Channels.Binding
uriScheme string The URI scheme.
descriptions List The descriptions.
configuration EndpointConfiguration The configuration.
return System.ServiceModel.Channels.Binding

Create() public static method

Creates a binding table from the bindings specified in the application configuration.
public static Create ( ApplicationConfiguration configuration, ServiceMessageContext context ) : BindingFactory
configuration ApplicationConfiguration
context ServiceMessageContext
return BindingFactory

Remove() public method

Removes a binding type from the factory.
public Remove ( string uriScheme ) : void
uriScheme string The URI scheme.
return void