IMessageProvider.CreateSubscriber Method (TeamFoundationRequestContext, String)
Create a new subscription for a given message bus. The name of the subscription will be allocated by the message bus and returned.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function CreateSubscriber ( _
requestContext As TeamFoundationRequestContext, _
messageBusName As String _
) As MessageBusSubscriptionInfo
MessageBusSubscriptionInfo CreateSubscriber(
TeamFoundationRequestContext requestContext,
string messageBusName
)
MessageBusSubscriptionInfo^ CreateSubscriber(
TeamFoundationRequestContext^ requestContext,
String^ messageBusName
)
abstract CreateSubscriber :
requestContext:TeamFoundationRequestContext *
messageBusName:string -> MessageBusSubscriptionInfo
function CreateSubscriber(
requestContext : TeamFoundationRequestContext,
messageBusName : String
) : MessageBusSubscriptionInfo
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context
messageBusName
Type: System.StringThe name of the message bus to create the subscription for
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.MessageBusSubscriptionInfo
Returns MessageBusSubscriptionInfo.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.