hdsdump.f4m.Media.UpfateBootstrapBox()

Here are the examples of the csharp api class hdsdump.f4m.Media.UpfateBootstrapBox() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: hdsdump
Source File: Media.cs
View license
private void OnBootstrapUpdateTimer(object state) {
            bootstrapInfo.data = HTTP.TryGETData(bootstrapInfo.url, out int retCode, out string status);

            if (retCode != 200) {
                Program.DebugLog("Error while loading UpdateBootstrapBox. Code: " + retCode + " Status: " + status);
            }

            UpfateBootstrapBox();
        }

2. Example

Project: hdsdump
Source File: Media.cs
View license
public void UpdateBootstrapInfo() {
            bool itWasLive = Bootstrap != null ? Bootstrap.live : false;

            if (!string.IsNullOrEmpty(bootstrapInfo.url)) {
                Updating = true;
                bootstrapInfo.data = HTTP.TryGETData(bootstrapInfo.url, out int retCode, out string status);

                if (retCode != 200) {
                    Program.DebugLog("Error while loading UpdateBootstrapBox. Code: " + retCode + " Status: " + status);
                }
            }

            UpfateBootstrapBox();

            if (!itWasLive && Bootstrap == null)
                throw new InvalidOperationException("Failed to parse bootstrap info. Not found the abst box.");

            if (Bootstrap != null && Bootstrap.live)
                StartBootstrapUpdateTimer();
        }