Get the bin folder of something?

johanz
edited May 2011 in Photon Server
I am developing my own server(not using lite or anything) and I need to get the folder of either my assembly or the folder where the server executable is located.
Obviously the server core can do and does that, but is there any function exposed?
Thanks

Comments

  • Yes, class Photon.SocketServer.Application has two properties: BinaryPath and ApplicationPath.
    You can find it in the documentation (Photon.SocketServer.chm).
  • Damn photon has terrible docs. It doesn't even tell binary path of what.
    Why doesn't it have a proper wiki where everyone can add and edit info? (If it does, I didn't notice it, which is bad too)
  • binary path of your application dlls, e.g. Lite\bin
    application path is the path that is configured in the photon configuration, which is one level above bin.