ProviderConnector<T> Class

 

Represents the methods that are used to attach to events that are associated to a connection to a provider.

Namespace:   Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly:  ProviderFramework (in ProviderFramework.dll)

System::Object
  Microsoft.WindowsServerSolutions.Common.ProviderFramework::ProviderConnector<T>

generic<typename T>
where T : ref class
public ref class ProviderConnector sealed : INotifyPropertyChanged, 
	IDisposable

Type Parameters

T

The type of underlying contract.

NameDescription
System_CAPS_pubpropertyConnected

Indicates whether the ProviderConnector<T> object is connected.

System_CAPS_pubpropertyConnection

Gets the current connection.

System_CAPS_pubpropertyConnectionTimeoutNotification

Gets or sets the timeout notification.

System_CAPS_pubpropertyIdentifier

Gets the identifier of the provider.

NameDescription
System_CAPS_pubmethodConnect()

Asynchronously connects to a provider.

System_CAPS_pubmethodConnect(Object^)

Asynchronously connects to a provider with the specified callback.

System_CAPS_pubmethodDisconnect()

Disconnects the provider from the service.

System_CAPS_pubmethodDispose()

Release all resources that are used by the ProviderConnector<T> object.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

eleases unmanaged resources and performs other cleanup operations before the ProviderConnector<T> object is reclaimed by garbage collection.(Overrides Object::Finalize().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodWaitForConnection(TimeSpan)

Blocks the calling thread until the connection finishes, is canceled, or the timespan is exceeded. In the case of the timespan being exceeded, the connection attempt continues in the background.

System_CAPS_pubmethodWaitForTimeout(TimeSpan)

Waits the specified duration for a connection.

NameDescription
System_CAPS_pubeventConnectionClosed

Represents the event that is raised when the current connection is closed.

System_CAPS_pubeventConnectionFailed

Represents the event that is raised when the connection was not successful.

System_CAPS_pubeventConnectionOpened

Represents the event that is raised when a connection succeeds and the connection is available for use.

System_CAPS_pubeventConnectionTimeout

Represents the event that is raised when the connection times out.

System_CAPS_pubeventPropertyChanged

Represents the INotifyPropertyChanged event that is raised when a property value is changed.

A ProviderConnector<T> object enables the passing of a single object for all communication without having to propagate the new connections when a connection is re-established.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: