Hi,
I searched, but I can't find an existing answer to this newbie question. I'm trying to return a collection of all metadata templates. I have two in my test environment. My code fails at the GetEnterpriseMetadataAsync line. Either I add async to the sub this is running within or remove the Await modifier, but neither work.
Please advise on the correct approach to working with async methods in the SDK.
Const DevToken As String = "abc1234"
Dim BoxConfig As New Box.V2.Config.BoxConfig("abc1234", "abc1234", New System.Uri("https://www.mysite.com/"))
Dim BoxSession As New Box.V2.Auth.OAuthSession(DevToken, "NOT_NEEDED", 3600, "bearer")
Dim BoxClient As New Box.V2.BoxClient(BoxConfig, BoxSession)
Dim MetaDataMgr As Box.V2.Managers.BoxMetadataManager
MetaDataMgr = BoxClient.MetadataManager
Dim AllTemplates = Await MetaDataMgr.GetEnterpriseMetadataAsync("enterprise")