-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
7,152 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: DocFX | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: DocFX | ||
shell: cmd | ||
run: | | ||
choco install docfx -y | ||
docfx docfx\docfx.json | ||
- name: Upload DocFX packages | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: docfx_site | ||
path: ${{ github.workspace }}\docfx\_site | ||
|
||
- name: Publish Documentation on GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docfx/_site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
############### | ||
# folder # | ||
############### | ||
/**/DROP/ | ||
/**/TEMP/ | ||
/**/packages/ | ||
/**/bin/ | ||
/**/obj/ | ||
_site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$Current = $PSScriptRoot | ||
|
||
$WinBiometricDotNetRoot = Split-Path $Current -Parent | ||
$SourceRoot = Join-Path $WinBiometricDotNetRoot sources | ||
$WinBiometricDotNetProjectRoot = Join-Path $SourceRoot WinBiometricDotNet | ||
$DocumentDir = Join-Path $WinBiometricDotNetProjectRoot docfx | ||
$Json = Join-Path $Current docfx.json | ||
|
||
docfx "${Json}" --serve | ||
Set-Location $Current |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"metadata": [ | ||
{ | ||
"src": [ | ||
{ | ||
"files": [ | ||
"**/WinBiometricDotNet.csproj" | ||
], | ||
"src": "../sources/WinBiometricDotNet" | ||
} | ||
], | ||
"dest": "api", | ||
"disableGitFeatures": false, | ||
"disableDefaultFilter": false | ||
} | ||
], | ||
"build": { | ||
"content": [ | ||
{ | ||
"files": [ | ||
"api/**.yml", | ||
"api/index.md" | ||
] | ||
}, | ||
{ | ||
"files": [ | ||
"articles/**.md", | ||
"articles/**/toc.yml", | ||
"toc.yml", | ||
"*.md" | ||
] | ||
} | ||
], | ||
"resource": [ | ||
{ | ||
"files": [ | ||
"images/**" | ||
] | ||
} | ||
], | ||
"overwrite": [ | ||
{ | ||
"files": [ | ||
"apidoc/**.md" | ||
], | ||
"exclude": [ | ||
"obj/**", | ||
"_site/**" | ||
] | ||
} | ||
], | ||
"dest": "_site", | ||
"globalMetadataFiles": [], | ||
"globalMetadata": { | ||
"_appTitle": "WinBiometricDotNet API Document", | ||
"_appLogoPath": "images/logo.png" | ||
}, | ||
"fileMetadataFiles": [], | ||
"template": [ | ||
"default" | ||
], | ||
"postProcessors": [], | ||
"markdownEngineName": "markdig", | ||
"noLangKeyword": false, | ||
"keepFileLink": false, | ||
"cleanupCacheHistory": false, | ||
"disableGitFeatures": false | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# WinBiometricDotNet API Document | ||
|
||
Windows Biometric Framework .NET wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# - name: Articles | ||
# href: articles/ | ||
- name: Api Documentation | ||
href: api/ | ||
# homepage: api/index.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$targets = @( | ||
"WinBiometricDotNet" | ||
) | ||
|
||
$ScriptPath = $PSScriptRoot | ||
$WinBiometricDotNetRoot = Split-Path $ScriptPath -Parent | ||
|
||
$source = Join-Path $WinBiometricDotNetRoot sources | ` | ||
Join-Path -ChildPath WinBiometricDotNet | ||
dotnet restore ${source} | ||
dotnet build -c Release ${source} | ||
|
||
foreach ($target in $targets) | ||
{ | ||
pwsh CreatePackage.ps1 $target | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#*************************************** | ||
#Arguments | ||
#%1: Package Name | ||
#*************************************** | ||
Param | ||
( | ||
[Parameter( | ||
Mandatory=$True, | ||
Position = 1 | ||
)][string] | ||
$Package | ||
) | ||
|
||
$nuspec = Join-Path nuspec "${Package}.nuspec" | ||
if (!(Test-Path ${nuspec})) | ||
{ | ||
Write-Host "Error: ${nuspec} does not exist" -ForegroundColor Red | ||
exit -1 | ||
} | ||
|
||
$nugetPath = Join-Path $PSScriptRoot nuget.exe | ||
if (!(Test-Path ${nugetPath})) | ||
{ | ||
Write-Host "Error: ${nugetPath} does not exist" -ForegroundColor Red | ||
exit -1 | ||
} | ||
|
||
Write-Host "${nuspec}" -ForegroundColor Green | ||
|
||
if ($global:IsWindows) | ||
{ | ||
Invoke-Expression "${nugetPath} pack ${nuspec}" | ||
} | ||
else | ||
{ | ||
Invoke-Expression "mono ${nugetPath} pack ${nuspec}" | ||
} | ||
|
||
if ($lastexitcode -ne 0) | ||
{ | ||
Write-Host "Failed '${nugetPath} pack ${nuspec}" -ForegroundColor Red | ||
exit -1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#*************************************** | ||
#Arguments | ||
#%1: Version of Release (1.2.3.0) | ||
#*************************************** | ||
Param([Parameter( | ||
Mandatory=$True, | ||
Position = 1 | ||
)][string] | ||
$Version | ||
) | ||
|
||
$PublishTargets = ( "WinBiometricDotNet" | ||
) | ||
|
||
$Token = $env:WinBiometricDotNetNugetToken | ||
if ([string]::IsNullOrWhitespace($Token)) | ||
{ | ||
Write-Host "nuget token is missing" -ForegroundColor Red | ||
exit | ||
} | ||
|
||
# Precheck whether all package is present | ||
foreach ($Target in $PublishTargets) | ||
{ | ||
$Package = Join-Path $PSScriptRoot "${Target}.${Version}.nupkg" | ||
if (!(Test-Path ${Package})) | ||
{ | ||
Write-Host "${Package} is missing" -ForegroundColor Red | ||
exit | ||
} | ||
} | ||
|
||
foreach ($Target in $PublishTargets) | ||
{ | ||
$Package = Join-Path $PSScriptRoot "${Target}.${Version}.nupkg" | ||
Write-Host "Publish ${Package}" -ForegroundColor Green | ||
dotnet nuget push ${Package} -k $Token -s https://api.nuget.org/v3/index.json | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System; | ||
using WinBiometricDotNet.Interop; | ||
using WINBIO_BIR_DATA_FLAGS = System.Byte; | ||
|
||
namespace WinBiometricDotNet | ||
{ | ||
|
||
/// <summary> | ||
/// The <see cref="DataFlags"/> enumeration specifies the type of processing to be applied to the captured sample. | ||
/// </summary> | ||
[Flags] | ||
public enum DataFlags : WINBIO_BIR_DATA_FLAGS | ||
{ | ||
|
||
/// <summary> | ||
/// The data is encrypted. | ||
/// </summary> | ||
Privacy = SafeNativeMethods.WINBIO_DATA_FLAG_PRIVACY, | ||
|
||
/// <summary> | ||
/// The data is digitally signed or is protected by a message authentication code (MAC). | ||
/// </summary> | ||
Integrity = SafeNativeMethods.WINBIO_DATA_FLAG_INTEGRITY, | ||
|
||
/// <summary> | ||
/// If this flag and the <see cref="Integrity"/> flag are set, the data is signed. If this flag is not set but the <see cref="Integrity"/> flag is set, a MAC is computed on the data. | ||
/// </summary> | ||
Signed = SafeNativeMethods.WINBIO_DATA_FLAG_SIGNED, | ||
|
||
/// <summary> | ||
/// The data is in the format with which it was captured. | ||
/// </summary> | ||
Raw = SafeNativeMethods.WINBIO_DATA_FLAG_RAW, | ||
|
||
/// <summary> | ||
/// The data is not raw but has not been completely processed. | ||
/// </summary> | ||
Intermediate = SafeNativeMethods.WINBIO_DATA_FLAG_INTERMEDIATE, | ||
|
||
/// <summary> | ||
/// The data has been processed. | ||
/// </summary> | ||
Processed = SafeNativeMethods.WINBIO_DATA_FLAG_PROCESSED, | ||
|
||
/// <summary> | ||
/// The flag mask. | ||
/// </summary> | ||
/// <remarks>This value is always one (1).</remarks> | ||
OptionMaskPresent = SafeNativeMethods.WINBIO_DATA_FLAG_OPTION_MASK_PRESENT | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.