├── .gitignore
├── CODE_OF_CONDUCT.md
├── CSharp
├── TestVpnPluginApp.sln
├── TestVpnPluginApp
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── Assets
│ │ ├── Badge.png
│ │ ├── LargeTile.scale-100.png
│ │ ├── LargeTile.scale-125.png
│ │ ├── LargeTile.scale-150.png
│ │ ├── LargeTile.scale-200.png
│ │ ├── LargeTile.scale-400.png
│ │ ├── LockScreenLogo.scale-200.png
│ │ ├── Logo-Main.png
│ │ ├── Logo.png
│ │ ├── Logo.scale-100.png
│ │ ├── Logo.scale-125.png
│ │ ├── Logo.scale-150.png
│ │ ├── Logo.scale-200.png
│ │ ├── Logo.scale-400.png
│ │ ├── SmallLogo-44.altform-lightunplated_targetsize-16.png
│ │ ├── SmallLogo-44.altform-lightunplated_targetsize-24.png
│ │ ├── SmallLogo-44.altform-lightunplated_targetsize-256.png
│ │ ├── SmallLogo-44.altform-lightunplated_targetsize-32.png
│ │ ├── SmallLogo-44.altform-lightunplated_targetsize-48.png
│ │ ├── SmallLogo-44.altform-unplated_targetsize-16.png
│ │ ├── SmallLogo-44.altform-unplated_targetsize-24.png
│ │ ├── SmallLogo-44.altform-unplated_targetsize-256.png
│ │ ├── SmallLogo-44.altform-unplated_targetsize-32.png
│ │ ├── SmallLogo-44.altform-unplated_targetsize-48.png
│ │ ├── SmallLogo-44.png
│ │ ├── SmallLogo-44.scale-100.png
│ │ ├── SmallLogo-44.scale-125.png
│ │ ├── SmallLogo-44.scale-150.png
│ │ ├── SmallLogo-44.scale-200.png
│ │ ├── SmallLogo-44.scale-400.png
│ │ ├── SmallLogo-44.targetsize-16.png
│ │ ├── SmallLogo-44.targetsize-24.png
│ │ ├── SmallLogo-44.targetsize-256.png
│ │ ├── SmallLogo-44.targetsize-32.png
│ │ ├── SmallLogo-44.targetsize-48.png
│ │ ├── SmallLogo.altform-lightunplated_targetsize-16.png
│ │ ├── SmallLogo.altform-lightunplated_targetsize-24.png
│ │ ├── SmallLogo.altform-lightunplated_targetsize-256.png
│ │ ├── SmallLogo.altform-lightunplated_targetsize-32.png
│ │ ├── SmallLogo.altform-lightunplated_targetsize-48.png
│ │ ├── SmallLogo.altform-unplated_targetsize-16.png
│ │ ├── SmallLogo.altform-unplated_targetsize-24.png
│ │ ├── SmallLogo.altform-unplated_targetsize-256.png
│ │ ├── SmallLogo.altform-unplated_targetsize-32.png
│ │ ├── SmallLogo.altform-unplated_targetsize-48.png
│ │ ├── SmallLogo.png
│ │ ├── SmallLogo.scale-100.png
│ │ ├── SmallLogo.scale-125.png
│ │ ├── SmallLogo.scale-150.png
│ │ ├── SmallLogo.scale-200.png
│ │ ├── SmallLogo.scale-400.png
│ │ ├── SmallLogo.targetsize-16.png
│ │ ├── SmallLogo.targetsize-24.png
│ │ ├── SmallLogo.targetsize-256.png
│ │ ├── SmallLogo.targetsize-32.png
│ │ ├── SmallLogo.targetsize-48.png
│ │ ├── SmallTile.scale-100.png
│ │ ├── SmallTile.scale-125.png
│ │ ├── SmallTile.scale-150.png
│ │ ├── SmallTile.scale-200.png
│ │ ├── SmallTile.scale-400.png
│ │ ├── SplashScreen.png
│ │ ├── SplashScreen.scale-100.png
│ │ ├── SplashScreen.scale-125.png
│ │ ├── SplashScreen.scale-150.png
│ │ ├── SplashScreen.scale-200.png
│ │ ├── SplashScreen.scale-400.png
│ │ ├── Square150x150Logo.scale-200.png
│ │ ├── Square44x44Logo.scale-100.png
│ │ ├── Square44x44Logo.scale-200.png
│ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ │ ├── StoreLogo.backup.png
│ │ ├── StoreLogo.scale-100.png
│ │ ├── StoreLogo.scale-125.png
│ │ ├── StoreLogo.scale-150.png
│ │ ├── StoreLogo.scale-200.png
│ │ ├── StoreLogo.scale-400.png
│ │ ├── Wide310x150Logo.scale-200.png
│ │ ├── WideTile.scale-100.png
│ │ ├── WideTile.scale-125.png
│ │ ├── WideTile.scale-150.png
│ │ ├── WideTile.scale-200.png
│ │ └── WideTile.scale-400.png
│ ├── Common
│ │ ├── NavigationHelper.cs
│ │ ├── ObservableDictionary.cs
│ │ ├── RelayCommand.cs
│ │ ├── StandardStyles.xaml
│ │ └── SuspensionManager.cs
│ ├── CredentialsDialog.xaml
│ ├── CredentialsDialog.xaml.cs
│ ├── MainPage.xaml
│ ├── MainPage.xaml.cs
│ ├── Package.appxmanifest
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ └── Default.rd.xml
│ └── TestVpnPluginApp.csproj
└── TestVpnPluginAppBg
│ ├── CustomConfiguration.cs
│ ├── Logger.cs
│ ├── PacketUtils.cs
│ ├── Properties
│ └── AssemblyInfo.cs
│ ├── TestVpnPluginAppBg.csproj
│ ├── TestVpnPluginAppBgTask.cs
│ └── VpnPlugin.cs
├── CppWinRT
├── TestVpnPluginApp.sln
├── TestVpnPluginApp
│ ├── App.cpp
│ ├── App.h
│ ├── App.idl
│ ├── App.xaml
│ ├── Assets
│ │ ├── LockScreenLogo.scale-200.png
│ │ ├── SplashScreen.scale-200.png
│ │ ├── Square150x150Logo.scale-200.png
│ │ ├── Square44x44Logo.scale-200.png
│ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ │ ├── StoreLogo.png
│ │ └── Wide310x150Logo.scale-200.png
│ ├── Class.cpp
│ ├── MainPage.cpp
│ ├── MainPage.h
│ ├── MainPage.idl
│ ├── MainPage.xaml
│ ├── Package.appxmanifest
│ ├── PropertySheet.props
│ ├── TestVpnPluginApp.vcxproj
│ ├── TestVpnPluginApp.vcxproj.filters
│ ├── packages.config
│ ├── pch.cpp
│ ├── pch.h
│ ├── readme.txt
│ └── test
└── TestVpnPluginAppBg
│ ├── BackgroundPacketWorker.cpp
│ ├── BackgroundPacketWorker.h
│ ├── CustomConfiguration.cpp
│ ├── CustomConfiguration.h
│ ├── NativeBuffer.h
│ ├── PacketUtils.cpp
│ ├── PacketUtils.h
│ ├── PropertySheet.props
│ ├── TestVpnPluginAppBg.def
│ ├── TestVpnPluginAppBg.vcxproj
│ ├── TestVpnPluginAppBg.vcxproj.filters
│ ├── TestVpnPluginAppBgTask.cpp
│ ├── TestVpnPluginAppBgTask.h
│ ├── TestVpnPluginAppBgTask.idl
│ ├── Utils.cpp
│ ├── Utils.h
│ ├── VPNConfiguration.h
│ ├── VpnPlugInImpl.cpp
│ ├── VpnPlugInImpl.h
│ ├── packages.config
│ ├── pch.cpp
│ ├── pch.h
│ └── readme.txt
├── LICENSE
├── README.md
├── SECURITY.md
├── SUPPORT.md
├── SimpleUDPListener
├── SimpleUDPLIstener.sln
└── SimpleUDPListener
│ ├── Client.cs
│ └── SimpleUDPListener.csproj
└── SimpleVpnServer
├── SimpleVpnServer.sln
└── SimpleVpnServer
├── Client.cs
├── Logger.cs
├── PacketUtils.cs
├── Properties
└── launchSettings.json
├── Server.cs
├── SimpleVpnServer.cs
└── SimpleVpnServer.csproj
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Ww][Ii][Nn]32/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Ll]og/
33 | [Ll]ogs/
34 |
35 | # Visual Studio 2015/2017 cache/options directory
36 | .vs/
37 | # Uncomment if you have tasks that create the project's static files in wwwroot
38 | #wwwroot/
39 |
40 | # Visual Studio 2017 auto generated files
41 | Generated\ Files/
42 |
43 | # MSTest test Results
44 | [Tt]est[Rr]esult*/
45 | [Bb]uild[Ll]og.*
46 |
47 | # NUnit
48 | *.VisualState.xml
49 | TestResult.xml
50 | nunit-*.xml
51 |
52 | # Build Results of an ATL Project
53 | [Dd]ebugPS/
54 | [Rr]eleasePS/
55 | dlldata.c
56 |
57 | # Benchmark Results
58 | BenchmarkDotNet.Artifacts/
59 |
60 | # .NET Core
61 | project.lock.json
62 | project.fragment.lock.json
63 | artifacts/
64 |
65 | # ASP.NET Scaffolding
66 | ScaffoldingReadMe.txt
67 |
68 | # StyleCop
69 | StyleCopReport.xml
70 |
71 | # Files built by Visual Studio
72 | *_i.c
73 | *_p.c
74 | *_h.h
75 | *.ilk
76 | *.meta
77 | *.obj
78 | *.iobj
79 | *.pch
80 | *.pdb
81 | *.ipdb
82 | *.pgc
83 | *.pgd
84 | *.rsp
85 | *.sbr
86 | *.tlb
87 | *.tli
88 | *.tlh
89 | *.tmp
90 | *.tmp_proj
91 | *_wpftmp.csproj
92 | *.log
93 | *.vspscc
94 | *.vssscc
95 | .builds
96 | *.pidb
97 | *.svclog
98 | *.scc
99 |
100 | # Chutzpah Test files
101 | _Chutzpah*
102 |
103 | # Visual C++ cache files
104 | ipch/
105 | *.aps
106 | *.ncb
107 | *.opendb
108 | *.opensdf
109 | *.sdf
110 | *.cachefile
111 | *.VC.db
112 | *.VC.VC.opendb
113 |
114 | # Visual Studio profiler
115 | *.psess
116 | *.vsp
117 | *.vspx
118 | *.sap
119 |
120 | # Visual Studio Trace Files
121 | *.e2e
122 |
123 | # TFS 2012 Local Workspace
124 | $tf/
125 |
126 | # Guidance Automation Toolkit
127 | *.gpState
128 |
129 | # ReSharper is a .NET coding add-in
130 | _ReSharper*/
131 | *.[Rr]e[Ss]harper
132 | *.DotSettings.user
133 |
134 | # TeamCity is a build add-in
135 | _TeamCity*
136 |
137 | # DotCover is a Code Coverage Tool
138 | *.dotCover
139 |
140 | # AxoCover is a Code Coverage Tool
141 | .axoCover/*
142 | !.axoCover/settings.json
143 |
144 | # Coverlet is a free, cross platform Code Coverage Tool
145 | coverage*[.json, .xml, .info]
146 |
147 | # Visual Studio code coverage results
148 | *.coverage
149 | *.coveragexml
150 |
151 | # NCrunch
152 | _NCrunch_*
153 | .*crunch*.local.xml
154 | nCrunchTemp_*
155 |
156 | # MightyMoose
157 | *.mm.*
158 | AutoTest.Net/
159 |
160 | # Web workbench (sass)
161 | .sass-cache/
162 |
163 | # Installshield output folder
164 | [Ee]xpress/
165 |
166 | # DocProject is a documentation generator add-in
167 | DocProject/buildhelp/
168 | DocProject/Help/*.HxT
169 | DocProject/Help/*.HxC
170 | DocProject/Help/*.hhc
171 | DocProject/Help/*.hhk
172 | DocProject/Help/*.hhp
173 | DocProject/Help/Html2
174 | DocProject/Help/html
175 |
176 | # Click-Once directory
177 | publish/
178 |
179 | # Publish Web Output
180 | *.[Pp]ublish.xml
181 | *.azurePubxml
182 | # Note: Comment the next line if you want to checkin your web deploy settings,
183 | # but database connection strings (with potential passwords) will be unencrypted
184 | *.pubxml
185 | *.publishproj
186 |
187 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
188 | # checkin your Azure Web App publish settings, but sensitive information contained
189 | # in these scripts will be unencrypted
190 | PublishScripts/
191 |
192 | # NuGet Packages
193 | *.nupkg
194 | # NuGet Symbol Packages
195 | *.snupkg
196 | # The packages folder can be ignored because of Package Restore
197 | **/[Pp]ackages/*
198 | # except build/, which is used as an MSBuild target.
199 | !**/[Pp]ackages/build/
200 | # Uncomment if necessary however generally it will be regenerated when needed
201 | #!**/[Pp]ackages/repositories.config
202 | # NuGet v3's project.json files produces more ignorable files
203 | *.nuget.props
204 | *.nuget.targets
205 |
206 | # Microsoft Azure Build Output
207 | csx/
208 | *.build.csdef
209 |
210 | # Microsoft Azure Emulator
211 | ecf/
212 | rcf/
213 |
214 | # Windows Store app package directories and files
215 | AppPackages/
216 | BundleArtifacts/
217 | Package.StoreAssociation.xml
218 | _pkginfo.txt
219 | *.appx
220 | *.appxbundle
221 | *.appxupload
222 |
223 | # Visual Studio cache files
224 | # files ending in .cache can be ignored
225 | *.[Cc]ache
226 | # but keep track of directories ending in .cache
227 | !?*.[Cc]ache/
228 |
229 | # Others
230 | ClientBin/
231 | ~$*
232 | *~
233 | *.dbmdl
234 | *.dbproj.schemaview
235 | *.jfm
236 | *.pfx
237 | *.publishsettings
238 | orleans.codegen.cs
239 |
240 | # Including strong name files can present a security risk
241 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
242 | #*.snk
243 |
244 | # Since there are multiple workflows, uncomment next line to ignore bower_components
245 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
246 | #bower_components/
247 |
248 | # RIA/Silverlight projects
249 | Generated_Code/
250 |
251 | # Backup & report files from converting an old project file
252 | # to a newer Visual Studio version. Backup files are not needed,
253 | # because we have git ;-)
254 | _UpgradeReport_Files/
255 | Backup*/
256 | UpgradeLog*.XML
257 | UpgradeLog*.htm
258 | ServiceFabricBackup/
259 | *.rptproj.bak
260 |
261 | # SQL Server files
262 | *.mdf
263 | *.ldf
264 | *.ndf
265 |
266 | # Business Intelligence projects
267 | *.rdl.data
268 | *.bim.layout
269 | *.bim_*.settings
270 | *.rptproj.rsuser
271 | *- [Bb]ackup.rdl
272 | *- [Bb]ackup ([0-9]).rdl
273 | *- [Bb]ackup ([0-9][0-9]).rdl
274 |
275 | # Microsoft Fakes
276 | FakesAssemblies/
277 |
278 | # GhostDoc plugin setting file
279 | *.GhostDoc.xml
280 |
281 | # Node.js Tools for Visual Studio
282 | .ntvs_analysis.dat
283 | node_modules/
284 |
285 | # Visual Studio 6 build log
286 | *.plg
287 |
288 | # Visual Studio 6 workspace options file
289 | *.opt
290 |
291 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
292 | *.vbw
293 |
294 | # Visual Studio LightSwitch build output
295 | **/*.HTMLClient/GeneratedArtifacts
296 | **/*.DesktopClient/GeneratedArtifacts
297 | **/*.DesktopClient/ModelManifest.xml
298 | **/*.Server/GeneratedArtifacts
299 | **/*.Server/ModelManifest.xml
300 | _Pvt_Extensions
301 |
302 | # Paket dependency manager
303 | .paket/paket.exe
304 | paket-files/
305 |
306 | # FAKE - F# Make
307 | .fake/
308 |
309 | # CodeRush personal settings
310 | .cr/personal
311 |
312 | # Python Tools for Visual Studio (PTVS)
313 | __pycache__/
314 | *.pyc
315 |
316 | # Cake - Uncomment if you are using it
317 | # tools/**
318 | # !tools/packages.config
319 |
320 | # Tabs Studio
321 | *.tss
322 |
323 | # Telerik's JustMock configuration file
324 | *.jmconfig
325 |
326 | # BizTalk build output
327 | *.btp.cs
328 | *.btm.cs
329 | *.odx.cs
330 | *.xsd.cs
331 |
332 | # OpenCover UI analysis results
333 | OpenCover/
334 |
335 | # Azure Stream Analytics local run output
336 | ASALocalRun/
337 |
338 | # MSBuild Binary and Structured Log
339 | *.binlog
340 |
341 | # NVidia Nsight GPU debugger configuration file
342 | *.nvuser
343 |
344 | # MFractors (Xamarin productivity tool) working folder
345 | .mfractor/
346 |
347 | # Local History for Visual Studio
348 | .localhistory/
349 |
350 | # BeatPulse healthcheck temp database
351 | healthchecksdb
352 |
353 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
354 | MigrationBackup/
355 |
356 | # Ionide (cross platform F# VS Code tools) working folder
357 | .ionide/
358 |
359 | # Fody - auto-generated XML schema
360 | FodyWeavers.xsd
361 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Microsoft Open Source Code of Conduct
2 |
3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4 |
5 | Resources:
6 |
7 | - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8 | - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9 | - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
10 |
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30711.63
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestVpnPluginApp", "TestVpnPluginApp\TestVpnPluginApp.csproj", "{67E7B63A-9255-431F-8B33-1703069E2C39}"
7 | ProjectSection(ProjectDependencies) = postProject
8 | {78E031DB-E1B6-4F11-816F-E43C24B01BD4} = {78E031DB-E1B6-4F11-816F-E43C24B01BD4}
9 | EndProjectSection
10 | EndProject
11 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestVpnPluginAppBg", "TestVpnPluginAppBg\TestVpnPluginAppBg.csproj", "{78E031DB-E1B6-4F11-816F-E43C24B01BD4}"
12 | EndProject
13 | Global
14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
15 | Debug|x64 = Debug|x64
16 | Release|x64 = Release|x64
17 | EndGlobalSection
18 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
19 | {67E7B63A-9255-431F-8B33-1703069E2C39}.Debug|x64.ActiveCfg = Debug|x64
20 | {67E7B63A-9255-431F-8B33-1703069E2C39}.Debug|x64.Build.0 = Debug|x64
21 | {67E7B63A-9255-431F-8B33-1703069E2C39}.Debug|x64.Deploy.0 = Debug|x64
22 | {67E7B63A-9255-431F-8B33-1703069E2C39}.Release|x64.ActiveCfg = Release|x64
23 | {67E7B63A-9255-431F-8B33-1703069E2C39}.Release|x64.Build.0 = Release|x64
24 | {67E7B63A-9255-431F-8B33-1703069E2C39}.Release|x64.Deploy.0 = Release|x64
25 | {78E031DB-E1B6-4F11-816F-E43C24B01BD4}.Debug|x64.ActiveCfg = Debug|x64
26 | {78E031DB-E1B6-4F11-816F-E43C24B01BD4}.Debug|x64.Build.0 = Debug|x64
27 | {78E031DB-E1B6-4F11-816F-E43C24B01BD4}.Release|x64.ActiveCfg = Release|x64
28 | {78E031DB-E1B6-4F11-816F-E43C24B01BD4}.Release|x64.Build.0 = Release|x64
29 | EndGlobalSection
30 | GlobalSection(SolutionProperties) = preSolution
31 | HideSolutionNode = FALSE
32 | EndGlobalSection
33 | GlobalSection(ExtensibilityGlobals) = postSolution
34 | SolutionGuid = {883210F9-51D2-4BEC-A671-DB8BD9B60111}
35 | EndGlobalSection
36 | EndGlobal
37 |
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Windows.ApplicationModel;
3 | using Windows.ApplicationModel.Activation;
4 | using Windows.Networking.Vpn;
5 | using Windows.UI.Xaml;
6 | using Windows.UI.Xaml.Controls;
7 | using Windows.UI.Xaml.Navigation;
8 |
9 | // The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227
10 |
11 | namespace TestVpnPluginApp
12 | {
13 | ///
14 | /// Provides application-specific behavior to supplement the default Application class.
15 | ///
16 | sealed partial class App : Application
17 | {
18 |
19 |
20 | ///
21 | /// Initializes the singleton application object. This is the first line of authored code
22 | /// executed, and as such is the logical equivalent of main() or WinMain().
23 | ///
24 | public App()
25 | {
26 | InitializeComponent();
27 | Suspending += OnSuspending;
28 | }
29 |
30 | ///
31 | /// Invoked when the application is launched normally by the end user. Other entry points
32 | /// will be used such as when the application is launched to open a specific file.
33 | ///
34 | /// Details about the launch request and process.
35 | protected override void OnLaunched(LaunchActivatedEventArgs e)
36 | {
37 |
38 | #if DEBUG
39 | if (System.Diagnostics.Debugger.IsAttached)
40 | {
41 | DebugSettings.EnableFrameRateCounter = true;
42 | }
43 | #endif
44 |
45 | Frame rootFrame = Window.Current.Content as Frame;
46 |
47 | // Do not repeat app initialization when the Window already has content,
48 | // just ensure that the window is active
49 | if (rootFrame == null)
50 | {
51 | // Create a Frame to act as the navigation context and navigate to the first page
52 | rootFrame = new Frame();
53 | // Set the default language
54 | rootFrame.Language = Windows.Globalization.ApplicationLanguages.Languages[0];
55 |
56 | rootFrame.NavigationFailed += OnNavigationFailed;
57 |
58 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
59 | {
60 | //TODO: Load state from previously suspended application
61 | }
62 |
63 | // Place the frame in the current Window
64 | Window.Current.Content = rootFrame;
65 | }
66 |
67 | if (rootFrame.Content == null)
68 | {
69 | // When the navigation stack isn't restored navigate to the first page,
70 | // configuring the new page by passing required information as a navigation
71 | // parameter
72 | rootFrame.Navigate(typeof(MainPage), e.Arguments);
73 | }
74 | // Ensure the current window is active
75 | Window.Current.Activate();
76 | }
77 |
78 | protected async override void OnActivated(IActivatedEventArgs args)
79 | {
80 | Frame rootFrame = Window.Current.Content as Frame;
81 | if (args.Kind == ActivationKind.Protocol)
82 | {
83 | ProtocolActivatedEventArgs eventArgs = args as ProtocolActivatedEventArgs;
84 |
85 | // Do not repeat app initialization when the Window already has content,
86 | // just ensure that the window is active
87 | if (rootFrame == null)
88 | {
89 | // Create a Frame to act as the navigation context and navigate to the first page
90 | rootFrame = new Frame();
91 | // Set the default language
92 | rootFrame.Language = Windows.Globalization.ApplicationLanguages.Languages[0];
93 |
94 | rootFrame.NavigationFailed += OnNavigationFailed;
95 |
96 | // Place the frame in the current Window
97 | Window.Current.Content = rootFrame;
98 | }
99 |
100 | if (rootFrame.Content == null)
101 | {
102 | // When the navigation stack isn't restored navigate to the first page,
103 | // configuring the new page by passing required information as a navigation
104 | // parameter
105 | rootFrame.Navigate(typeof(MainPage), eventArgs.Uri.AbsoluteUri);
106 | }
107 | // Ensure the current window is active
108 | Window.Current.Activate();
109 | // The received URI is eventArgs.Uri.AbsoluteUri
110 | }
111 |
112 |
113 | // Example of how to protect from using a type that might not exist in a version of windows
114 | // To be clear, that should not be the case for this type, as it was backported with 9C
115 | if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Networking.Vpn.VpnForegroundActivatedEventArgs"))
116 | {
117 | if (args is VpnForegroundActivatedEventArgs)
118 | {
119 | VpnForegroundActivatedEventArgs activateForegroundArgs = args as VpnForegroundActivatedEventArgs;
120 |
121 | if (rootFrame == null)
122 | {
123 | // Create a Frame to act as the navigation context and navigate to the first page
124 | rootFrame = new Frame();
125 | // Set the default language
126 | rootFrame.Language = Windows.Globalization.ApplicationLanguages.Languages[0];
127 |
128 | rootFrame.NavigationFailed += OnNavigationFailed;
129 |
130 | // Place the frame in the current Window
131 | Window.Current.Content = rootFrame;
132 | }
133 |
134 | if (rootFrame.Content == null)
135 | {
136 | // When the navigation stack isn't restored navigate to the first page,
137 | // configuring the new page by passing required information as a navigation
138 | // parameter
139 | rootFrame.Navigate(typeof(MainPage));
140 | }
141 | // Ensure the current window is active
142 | Window.Current.Activate();
143 |
144 | CredentialsDialog creds = new CredentialsDialog();
145 | await creds.ShowAsync();
146 |
147 | activateForegroundArgs.ActivationOperation.Complete(creds.valueSet);
148 | }
149 | }
150 | else
151 | {
152 | // Here we throw an exception to make it clear that we are missing this type
153 | // You could do something else, such as allow the app to continue as normal
154 | throw new Exception("Windows.Networking.Vpn.VpnForegroundActivatedEventArgs not found");
155 | }
156 | }
157 |
158 |
159 |
160 | ///
161 | /// Invoked when Navigation to a certain page fails
162 | ///
163 | /// The Frame which failed navigation
164 | /// Details about the navigation failure
165 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
166 | {
167 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
168 | }
169 |
170 | ///
171 | /// Invoked when application execution is being suspended. Application state is saved
172 | /// without knowing whether the application will be terminated or resumed with the contents
173 | /// of memory still intact.
174 | ///
175 | /// The source of the suspend request.
176 | /// Details about the suspend request.
177 | private void OnSuspending(object sender, SuspendingEventArgs e)
178 | {
179 | var deferral = e.SuspendingOperation.GetDeferral();
180 | //TODO: Save application state and stop any background activity
181 | deferral.Complete();
182 | }
183 | }
184 | }
185 |
186 |
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Badge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Badge.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-100.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-125.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-150.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/LargeTile.scale-400.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Logo-Main.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Logo-Main.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Logo.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Logo.scale-100.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Logo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Logo.scale-125.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Logo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Logo.scale-150.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Logo.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Logo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Logo.scale-400.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-16.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-24.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-256.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-32.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-lightunplated_targetsize-48.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-16.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-24.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-256.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-32.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.altform-unplated_targetsize-48.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-100.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-125.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-150.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.scale-400.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-16.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-24.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-256.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-32.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo-44.targetsize-48.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-16.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-24.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-256.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-32.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-lightunplated_targetsize-48.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-16.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-24.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-256.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-32.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.altform-unplated_targetsize-48.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-100.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-125.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-150.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.scale-400.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-16.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-24.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-24.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-256.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-32.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallLogo.targetsize-48.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-100.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-125.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-150.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SmallTile.scale-400.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SplashScreen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SplashScreen.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-100.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-125.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-150.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/SplashScreen.scale-400.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Square44x44Logo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Square44x44Logo.scale-100.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/StoreLogo.backup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/StoreLogo.backup.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-100.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-125.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-150.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/StoreLogo.scale-400.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/WideTile.scale-100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/WideTile.scale-100.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/WideTile.scale-125.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/WideTile.scale-125.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/WideTile.scale-150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/WideTile.scale-150.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/WideTile.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/WideTile.scale-200.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Assets/WideTile.scale-400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/UwpVpnPluginSample/d589fe0f57af13e052c44c662ade5fb1da2bcbb0/CSharp/TestVpnPluginApp/Assets/WideTile.scale-400.png
--------------------------------------------------------------------------------
/CSharp/TestVpnPluginApp/Common/ObservableDictionary.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using Windows.Foundation.Collections;
5 |
6 | namespace TestVpnPluginApp.Common
7 | {
8 | ///
9 | /// Implementation of IObservableMap that supports reentrancy for use as a default view
10 | /// model.
11 | ///
12 | public class ObservableDictionary : IObservableMap
13 | {
14 | private class ObservableDictionaryChangedEventArgs : IMapChangedEventArgs
15 | {
16 | public ObservableDictionaryChangedEventArgs(CollectionChange change, string key)
17 | {
18 | this.CollectionChange = change;
19 | this.Key = key;
20 | }
21 |
22 | public CollectionChange CollectionChange { get; private set; }
23 | public string Key { get; private set; }
24 | }
25 |
26 | private Dictionary _dictionary = new Dictionary();
27 | public event MapChangedEventHandler MapChanged;
28 |
29 | private void InvokeMapChanged(CollectionChange change, string key)
30 | {
31 | var eventHandler = MapChanged;
32 | if (eventHandler != null)
33 | {
34 | eventHandler(this, new ObservableDictionaryChangedEventArgs(change, key));
35 | }
36 | }
37 |
38 | public void Add(string key, object value)
39 | {
40 | this._dictionary.Add(key, value);
41 | this.InvokeMapChanged(CollectionChange.ItemInserted, key);
42 | }
43 |
44 | public void Add(KeyValuePair item)
45 | {
46 | this.Add(item.Key, item.Value);
47 | }
48 |
49 | public bool Remove(string key)
50 | {
51 | if (this._dictionary.Remove(key))
52 | {
53 | this.InvokeMapChanged(CollectionChange.ItemRemoved, key);
54 | return true;
55 | }
56 | return false;
57 | }
58 |
59 | public bool Remove(KeyValuePair item)
60 | {
61 | object currentValue;
62 | if (this._dictionary.TryGetValue(item.Key, out currentValue) &&
63 | Object.Equals(item.Value, currentValue) && this._dictionary.Remove(item.Key))
64 | {
65 | this.InvokeMapChanged(CollectionChange.ItemRemoved, item.Key);
66 | return true;
67 | }
68 | return false;
69 | }
70 |
71 | public object this[string key]
72 | {
73 | get
74 | {
75 | return this._dictionary[key];
76 | }
77 | set
78 | {
79 | this._dictionary[key] = value;
80 | this.InvokeMapChanged(CollectionChange.ItemChanged, key);
81 | }
82 | }
83 |
84 | public void Clear()
85 | {
86 | var priorKeys = this._dictionary.Keys.ToArray();
87 | this._dictionary.Clear();
88 | foreach (var key in priorKeys)
89 | {
90 | this.InvokeMapChanged(CollectionChange.ItemRemoved, key);
91 | }
92 | }
93 |
94 | public ICollection Keys
95 | {
96 | get { return this._dictionary.Keys; }
97 | }
98 |
99 | public bool ContainsKey(string key)
100 | {
101 | return this._dictionary.ContainsKey(key);
102 | }
103 |
104 | public bool TryGetValue(string key, out object value)
105 | {
106 | return this._dictionary.TryGetValue(key, out value);
107 | }
108 |
109 | public ICollection