static WalletApp() { Transaction.Init(); #if DEBUG var debugEndPointData = EmbeddedResource.GetEmbeddedResource <UIApp>("debugendpoint.txt"); if (debugEndPointData != null) { var preamble = Encoding.UTF8.GetString(Encoding.UTF8.GetPreamble()); var endPoint = Encoding.UTF8.GetString(debugEndPointData).Trim().Replace(preamble, string.Empty).Trim(); if (!string.IsNullOrWhiteSpace(endPoint) && endPoint.StartsWith("http", StringComparison.Ordinal) && Uri.TryCreate(endPoint, UriKind.RelativeOrAbsolute, out _)) { _debugEndPoint = endPoint; } } #else _debugEndPoint = null; #endif }