Partager via


ConfigMgrBgbSession Class

 

Represents a client notification session with a management point.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Messages
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Inheritance Hierarchy

System.Object
  Microsoft.ConfigurationManagement.Messaging.Messages.ConfigMgrBgbSession
    Microsoft.ConfigurationManagement.Messaging.Messages.ConfigMgrBgbHttpSession
    Microsoft.ConfigurationManagement.Messaging.Messages.ConfigMgrBgbTcpSession

Syntax

[SerializableAttribute]
public abstract class ConfigMgrBgbSession : IDisposable
[SerializableAttribute]
public ref class ConfigMgrBgbSession abstract : IDisposable
<SerializableAttribute>
Public MustInherit Class ConfigMgrBgbSession
    Implements IDisposable

Properties

Name Description
System_CAPS_pubproperty ClientCertificate

Gets the client certificate to use with the client notification session.

System_CAPS_pubproperty ClientVersion

Gets or sets the client version associated with the client notification session.

System_CAPS_pubproperty HostName

Gets the client notification server host name.

System_CAPS_pubproperty IsConnected

Indicates whether the session is connected.

System_CAPS_pubproperty KeepAliveInterval

Gets or sets the interval for sending keep-alive notifications to the client notification endpoint on the management point. The default value is 15 minutes.

System_CAPS_pubproperty Port

Gets the client notification server port number. The default value is 10123.

System_CAPS_pubproperty SecurityMode

Gets the message security mode, if applicable.

System_CAPS_pubproperty SessionType

Gets the client notification session type.

System_CAPS_pubproperty SmsId

Gets the client SMSID.

System_CAPS_protproperty Synchronizer

Gets the synchronizer object used for thread synchronization.

System_CAPS_pubproperty ValidateCrl

If true, the Certificate Revocation List (CRL) is verified.

System_CAPS_pubproperty ValidateServerCertificate

If true, the server certificate is valid.

Methods

Name Description
System_CAPS_pubmethod CloseSession()

Closes an active client notification session. If the session is not open, no action is taken.

System_CAPS_pubmethodSystem_CAPS_static CreateSession(BgbSessionType, String, MessageSecurityMode, SmsClientId, ClientVersionBase, MessageCertificateX509)

Creates a new client notification session of a specific type using the default port.

System_CAPS_pubmethodSystem_CAPS_static CreateSession(BgbSessionType, String, UInt16, MessageSecurityMode, SmsClientId, ClientVersionBase, MessageCertificateX509)

Creates a new client notification session of a specific type.

System_CAPS_pubmethod Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

System_CAPS_protmethod Dispose(Boolean)

Implementation of IDisposable.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod InternalCloseSession()

Closes a session.

System_CAPS_protmethod InternalOpenSession()

Opens a session with the client notification server.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod OnBgbMessageReceived(ConfigMgrBgbSessionEventArgs)

Invokes the BgbMessageReceived event when a client notification message is received.

System_CAPS_protmethod OnBgbMessageSent(ConfigMgrBgbSessionEventArgs)

Invokes the BgbMessageSent event when a client notification message is sent.

System_CAPS_protmethod OnBgbSessionClosed(EventArgs)

Invokes the BgbSessionClosed event when a BGB session closes.

System_CAPS_protmethod OnBgbSessionOpened(EventArgs)

Invokes the BgbSessionOpened event when a BGB session opens.

System_CAPS_pubmethod OpenSession()

Opens a client notification session using the parameters defined in the source message.

System_CAPS_protmethod ProcessReceivedMessage(BgbMessageType, Stream, UInt32, UInt32)

Internal handler for processing a received message.

System_CAPS_protmethod SendMessageImplementation(IMessage, BgbMessageType)

Implementation for sending a message to a session listener.

System_CAPS_pubmethod SendResponseMessage(BgbResponseMessage)

Sends a response message for a request over the BGB channel.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_protmethod Validate()

Performs message validation.

System_CAPS_protmethod Validate(Collection<Exception>)

Performs message validation.

Events

Name Description
System_CAPS_pubevent BgbMessageReceived

Invoked when a client notification message is received on the asynchronous channel.

System_CAPS_pubevent BgbMessageSent

Invoked when a client notification message is sent on the asynchronous channel.

System_CAPS_pubevent BgbSessionClosed

Invoked when a client notification session is closed.

System_CAPS_pubevent BgbSessionOpened

Invoked when a client notification session is successfully created.

Thread Safety

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

See Also

Microsoft.ConfigurationManagement.Messaging.Messages Namespace

Return to top