Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vault Client Command Extension 2014

1 REPLY 1
Reply
Message 1 of 2
johnnymac2
233 Views, 1 Reply

Vault Client Command Extension 2014

In version 2012 I was able to use the following property to get the Host:

 

e.Context.Application.VaultContext.RemoteBaseUrl.Host

 

How do I accomplish this in 2014?

 

Thanks,

 

John

1 REPLY 1
Message 2 of 2
wayne.brill
in reply to: johnnymac2

Hi John,

 

A colleague has this suggestion:

 

>> >>

FYI – there is not just one server anymore, there are two: a data server and a file server.  They may point to the same host.

Once you have a WebServiceManager, they can be obtained via:
myWebSvcMgr.WebServiceCredentials.ServerIdentities.DataServer
myWebSvcMgr.WebServiceCredentials.ServerIdentities.FileServer

I believe the strings are in the form of URLs (http://hostname or https://hostname).

<< <<

 

This blog post has a suggestion for getting the WebServiceManager in an event:

http://adndevblog.typepad.com/manufacturing/2013/06/get-webservicemanager-in-a-vault-event-handler.h...

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report