@@ -27,7 +27,8 @@ public MessageQueue Authenticate(string queueName, string fullyQualifiedNamespac
2727 { PropertyConstants . PREFETCH_COUNT , options . PrefetchCount . ToString ( ) } ,
2828 { PropertyConstants . RECEIVER_IDENTIFIER , options . Identifier } ,
2929 { PropertyConstants . RECEIVER_SESSIONID , options . SessionId } ,
30- { PropertyConstants . SENDER_IDENTIFIER , senderIdentifier }
30+ { PropertyConstants . SENDER_IDENTIFIER , senderIdentifier } ,
31+ { PropertyConstants . AUTHENTICATION_METHOD , AuthenticationMethod . ActiveDirectory . ToString ( ) }
3132 } ;
3233
3334 MessageQueue messageQueue = messageBrokerProvider . Connect ( PropertyConstants . AZURESERVICEBUS , properties , out GXBaseCollection < SdtMessages_Message > errorMessagesConnect , out bool successConnect ) ;
@@ -51,6 +52,7 @@ public MessageQueue Authenticate(string topicName, string subcriptionName, strin
5152 properties . Add ( PropertyConstants . RECEIVER_IDENTIFIER , options . Identifier ) ;
5253 properties . Add ( PropertyConstants . RECEIVER_SESSIONID , options . SessionId ) ;
5354 properties . Add ( PropertyConstants . SENDER_IDENTIFIER , senderIdentifier ) ;
55+ properties . Add ( PropertyConstants . AUTHENTICATION_METHOD , AuthenticationMethod . ActiveDirectory . ToString ( ) ) ;
5456
5557 MessageQueue messageQueue = messageBrokerProvider . Connect ( PropertyConstants . AZURESERVICEBUS , properties , out GXBaseCollection < SdtMessages_Message > errorMessagesConnect , out bool successConnect ) ;
5658 errorMessages = errorMessagesConnect ;
@@ -64,7 +66,8 @@ public MessageQueue Authenticate(string queueName, string fullyQualifiedNamespac
6466 GXProperties properties = new GXProperties
6567 {
6668 { PropertyConstants . MESSAGEBROKER_AZURESB_QUEUENAME , queueName } ,
67- { PropertyConstants . MESSAGEBROKER_AZURESB_FULLYQUALIFIEDNAMESPACE , fullyQualifiedNamespace }
69+ { PropertyConstants . MESSAGEBROKER_AZURESB_FULLYQUALIFIEDNAMESPACE , fullyQualifiedNamespace } ,
70+ { PropertyConstants . AUTHENTICATION_METHOD , AuthenticationMethod . ActiveDirectory . ToString ( ) }
6871 } ;
6972
7073 MessageQueue messageQueue = messageBrokerProvider . Connect ( PropertyConstants . AZURESERVICEBUS , properties , out GXBaseCollection < SdtMessages_Message > errorMessagesConnect , out bool successConnect ) ;
@@ -79,7 +82,8 @@ public MessageQueue Authenticate(string topicName, string subcriptionName, strin
7982 {
8083 { PropertyConstants . MESSAGEBROKER_AZURESB_QUEUENAME , topicName } ,
8184 { PropertyConstants . MESSAGEBROKER_AZURESB_SUBSCRIPTION_NAME , subcriptionName } ,
82- { PropertyConstants . MESSAGEBROKER_AZURESB_FULLYQUALIFIEDNAMESPACE , fullyQualifiedNamespace }
85+ { PropertyConstants . MESSAGEBROKER_AZURESB_FULLYQUALIFIEDNAMESPACE , fullyQualifiedNamespace } ,
86+ { PropertyConstants . AUTHENTICATION_METHOD , AuthenticationMethod . ActiveDirectory . ToString ( ) }
8387 } ;
8488
8589 MessageQueue messageQueue = messageBrokerProvider . Connect ( PropertyConstants . AZURESERVICEBUS , properties , out GXBaseCollection < SdtMessages_Message > errorMessagesConnect , out bool successConnect ) ;
@@ -96,7 +100,9 @@ public MessageQueue Connect(string queueName, string connectionString, out GXBas
96100 GXProperties properties = new GXProperties
97101 {
98102 { PropertyConstants . MESSAGEBROKER_AZURESB_QUEUENAME , queueName } ,
99- { PropertyConstants . MESSAGEBROKER_AZURESB_CONNECTIONSTRING , connectionString }
103+ { PropertyConstants . MESSAGEBROKER_AZURESB_CONNECTIONSTRING , connectionString } ,
104+ { PropertyConstants . AUTHENTICATION_METHOD , AuthenticationMethod . Password . ToString ( ) }
105+
100106 } ;
101107
102108 MessageQueue messageQueue = messageBrokerProvider . Connect ( PropertyConstants . AZURESERVICEBUS , properties , out GXBaseCollection < SdtMessages_Message > errorMessagesConnect , out bool successConnect ) ;
@@ -112,7 +118,8 @@ public MessageQueue Connect(string topicName, string subcriptionName, string con
112118 {
113119 { PropertyConstants . MESSAGEBROKER_AZURESB_QUEUENAME , topicName } ,
114120 { PropertyConstants . MESSAGEBROKER_AZURESB_SUBSCRIPTION_NAME , subcriptionName } ,
115- { PropertyConstants . MESSAGEBROKER_AZURESB_CONNECTIONSTRING , connectionString }
121+ { PropertyConstants . MESSAGEBROKER_AZURESB_CONNECTIONSTRING , connectionString } ,
122+ { PropertyConstants . AUTHENTICATION_METHOD , AuthenticationMethod . Password . ToString ( ) }
116123 } ;
117124
118125 MessageQueue messageQueue = messageBrokerProvider . Connect ( PropertyConstants . AZURESERVICEBUS , properties , out GXBaseCollection < SdtMessages_Message > errorMessagesConnect , out bool successConnect ) ;
@@ -135,7 +142,8 @@ public MessageQueue Connect(string queueName, string connectionString, bool sess
135142 { PropertyConstants . PREFETCH_COUNT , options . PrefetchCount . ToString ( ) } ,
136143 { PropertyConstants . RECEIVER_IDENTIFIER , options . Identifier } ,
137144 { PropertyConstants . RECEIVER_SESSIONID , options . SessionId } ,
138- { PropertyConstants . SENDER_IDENTIFIER , senderIdentifier }
145+ { PropertyConstants . SENDER_IDENTIFIER , senderIdentifier } ,
146+ { PropertyConstants . AUTHENTICATION_METHOD , AuthenticationMethod . Password . ToString ( ) }
139147 } ;
140148
141149 MessageQueue messageQueue = messageBrokerProvider . Connect ( PropertyConstants . AZURESERVICEBUS , properties , out GXBaseCollection < SdtMessages_Message > errorMessagesConnect , out bool successConnect ) ;
@@ -159,6 +167,7 @@ public MessageQueue Connect(string topicName, string subcriptionName, string con
159167 properties . Add ( PropertyConstants . RECEIVER_IDENTIFIER , options . Identifier ) ;
160168 properties . Add ( PropertyConstants . RECEIVER_SESSIONID , options . SessionId ) ;
161169 properties . Add ( PropertyConstants . SENDER_IDENTIFIER , senderIdentifier ) ;
170+ properties . Add ( PropertyConstants . AUTHENTICATION_METHOD , AuthenticationMethod . Password . ToString ( ) ) ;
162171
163172 MessageQueue messageQueue = messageBrokerProvider . Connect ( PropertyConstants . AZURESERVICEBUS , properties , out GXBaseCollection < SdtMessages_Message > errorMessagesConnect , out bool successConnect ) ;
164173 errorMessages = errorMessagesConnect ;
0 commit comments