| TestUtilCreateTopic Method |
Creates a valid
Topic with the specified
Service to support testing publishers.
The expected use case is to support returning a custom
Topic while mocking
GetTopic(Message) methods.
Namespace:
Bloomberglp.Blpapi.Test
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.19.2.1
Syntaxpublic static Topic CreateTopic(
Service service,
bool isActive
)
Public Shared Function CreateTopic (
service As Service,
isActive As Boolean
) As Topic
public:
static Topic^ CreateTopic(
Service^ service,
bool isActive
)
static member CreateTopic :
service : Service *
isActive : bool -> Topic
Parameters
- service
- Type: Bloomberglp.BlpapiService
The service that the Topic should be created for.
Must be a test Service created through
TestUtil.
- isActive
- Type: SystemBoolean
Specifies whether or not the Topic is still active
(not deleted).
Return Value
Type:
Topic
Returns the newly created
Topic.
See Also