Skip to content

Instantly share code, notes, and snippets.

Avatar
🛠️
Code.Build.Test.Deploy.Monitor.Repeat(); 🥇

dylanberry dylanberry

🛠️
Code.Build.Test.Deploy.Monitor.Repeat(); 🥇
View GitHub Profile
View AzureDevOps-Get-PAT-az-cli.ps1
az login
$azureDevopsResourceId = "499b84ac-1321-427f-aa17-267ca6975798"
$token = az account get-access-token --resource $azureDevopsResourceId | ConvertFrom-Json
$authValue = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(":" + $token.accessToken))
$headers = @{
Authorization = "Basic $authValue";
'X-VSS-ForceMsaPassThrough' = $true
}
View AzureDevOps-Queue-Yaml-Pipeline-With-Parameters.ps1
$AzureDevOpsOrganization = "myorg"
$AzureDevOpsProject = "myproject"
$PAT = "<Azure DevOps Personal Access Token>"
$devopsProjectUrl = "https://dev.azure.com/$AzureDevOpsOrganization/$AzureDevOpsProject"
$headers = @{
Authorization = "Basic $PAT";
'X-VSS-ForceMsaPassThrough' = $true
}
View Stream Notes - 2020-05-12.md

Agenda

  • Mock services that communicate with the backend

Notes

Tasks

View Stream Notes - 2020-05-09.md

Agenda

  • RateTheMeet!
    • Review
    • Secrets/basic clean-up
    • Commit to public repo
    • Backlog/wishlist

Notes

View StreamNotes-2020-05-05.md

Agenda

  • Finish rebase
  • Touch-up pull request

Notes

  • Rebase
    • Commits are replayed one at a time
    • Resolving a conflict in a commit may cause cascading conflicts in future commits
    • To complete the rebase process, you must force push
    • Consider different tools - GitKraken
View BaseTabViewModel.cs
public class BaseTabViewModel : BaseViewModel, IActiveAware
{
// NOTE: Prism.Forms only sets IsActive, and does not do anything with the event.
public BaseTabViewModel(INavigationService navigationService,
IViewModelServiceProvider viewModelServiceProvider)
: base(navigationService, viewModelServiceProvider)
{
var onIsActiveChanged = new WeakEventHandler<EventArgs>(OnIsActiveChanged);
IsActiveChanged += onIsActiveChanged.Handler;
View Stream Notes - 2020-05-02.md

Agenda

  • Fix issues identified in PageNavigationService
  • Write UI tests!

Notes

  • if Visual Studio for Mac will not build/run due to XAMLC issues, clean, delete output and quit/restart VS

What did we do?

  • Fixed (not really) VS XAMLC headache
  • Debugged PageNavigationService, found/fixed an unawaited async call
View Stream Notes - 2020-05-01.md

Agenda

  • Build pages for tabbed navigation scenario in test "HelloWorld" project
  • Examine existing UI tests
  • Build new UI tests

What did we do?

  • Looked Prism modules for the first time!
  • Brought our list/detail page into the HelloWorld/Module A project
  • Added new dependencies into HelloWorld solution
  • Explored existing UI Tests - ran successfully
View FireAndForgetSafeAsync.cs
public static class TaskUtilities
{
#pragma warning disable RECS0165 // Asynchronous methods should return a Task instead of void
public static async void FireAndForgetSafeAsync(this Task task, Action<Exception> handleErrorAction = null)
#pragma warning restore RECS0165 // Asynchronous methods should return a Task instead of void
{
try
{
await task.ConfigureAwait(true);
}
View Stream Notes - 2020-04-25.md

Agenda

  • Functional testing
  • Unit testing

Notes

  • Give mfractor kudos for paste class functionality