fatjohn / unicorntoolkit Goto Github PK
View Code? Open in Web Editor NEWThis library is mainly to provide a simple way connect http API
License: MIT License
This library is mainly to provide a simple way connect http API
License: MIT License
在 PPPOE 連綫下,利用 https://docs.microsoft.com/en-us/uwp/api/windows.networking.connectivity.networkinformation.getinternetconnectionprofile 拿到 null。
但用戶其實是可以上網的。
建議改用: https://stackoverflow.com/questions/35901526/how-to-check-internet-connectivity-type-in-universal-windows-platform 裏面介紹的 NetworkInterface
來檢查: https://docs.microsoft.com/en-us/dotnet/api/system.net.networkinformation.networkinterface.getisnetworkavailable?view=dotnet-uwp-10.0#System_Net_NetworkInformation_NetworkInterface_GetIsNetworkAvailable
InnerException
HResult:-2147467259
Name:System.Exception: 無法指出的錯誤 (Exception from HRESULT: 0x80004005)
at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21
at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Void*) + 0xbe
at __Interop.ForwardComStubs.Stub_3[TThis, TResult](__ComObject, Int32) + 0x37
at Windows.Storage.StorageFolder.GetItemsAsync() + 0x18
at Unicorn.StorageHelper.<GetFilesInFolder>d__24.MoveNext() + 0x61
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at Unicorn.StorageHelper.<GetFilesInFolder>d__24.MoveNext() + 0x1f0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
at Unicorn.StorageHelper.<GetFilesInFolder>d__24.MoveNext() + 0x1f0
原本内容:
Regex("^[_a-z0-9-]+([.][_a-z0-9-]+)*@[a-z0-9-]+([.][a-z0-9-]+)*$");
改爲:
Regex("^[_\\w-]+([.][_\\w-]+)*@[\\w-]+([.][\\w-]+)*$");
Returns
ConnectionProfile
The profile for the connection currently used to connect the machine to the Internet, or null if there is no connection profile with a suitable connection.
當大量的發送 Request 之後,用 snapshot 看記憶體的狀態,會發現記憶體中存在很多 HttpRequestMessage 以及 HttpResponseMessage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.