Beispiel #1
0
 private void PublishBuild()
 {
     try
     {
         var steamWebApi = new SteamWebApi();
         var build       = steamWebApi.GetAppBuilds().First(x => x.Description.ToLower().Contains(GlobalConst.Mode == ModeType.Live ? "stable" : "test"));
         steamWebApi.SetAppBuildLive(build.BuildID, GlobalConst.Mode == ModeType.Live ? "public" : "test");
         Trace.TraceInformation("SteamDepot build {0} set live", build.BuildID);
     }
     catch (Exception ex)
     {
         throw new ApplicationException("SteamDepot error publishing steam branch: {0}", ex);
     }
 }