You can publish a local library at the time of creation to enable other libraries to subscribe and use the library content.

1

Retrieve the LocalLibrary service.

2

Create a PublishInfo instance to define how the library is published.

3

Specify the authentication method to be used by a subscribed library to authenticate to the local library.

You can enable either basic authentication or no authentication on the library. Basic authentication requires a user name and password.

4

(Optional) If you publish the library with basic authentication, you must specify a user name and password for the PublishInfo instance, which must be used for authentication.

Important

Use the predefined user name vcsp or leave the user name undefined. You must set only a password to protect the library.

5

Create a LibraryModel instance and configure the instance.

6

Set the library type to local and use the configured PublishInfo instance to set the library to published.

7

Define where the content of the local library is stored by using the StorageBacking class.

8

Create a published local library.