Using Pulumi, I recently learned how to obtain a connection string from SQL Server database declaration. I needed this connection string so that I could register its value in an App Setting. I learned that Pulumi provides the ConnStringInfoArgs type to accommodate this need. Here's some example code below: using System; using Pulumi; using Pulumi.AzureNative.Resources; …
Pulumi: Function App, Key Vault, and Access Policy
My Brain Dump How can a Function App access Azure Key Vault secrets? Known Issue and workaround: I referenced the issue I was observing and used the recommended work around. Below is the workaround. Function App First, provide an identity value to the Function App declaration: Identity = new FunctionAppIdentityArgs { Type = "SystemAssigned" }, …
Continue reading "Pulumi: Function App, Key Vault, and Access Policy"
Pulumi Code Examples
My hobby project consists of building a mobile delivery platform. Thus, I needed some Infrastructure as Code (aka: IaC) to provision deployments. My goal was to have code structured as follows: Fortunately, I was able to learn the basics and write the proof of concept in a short amount of time. Here's some clients to …
Implementing Azure SignalR
Client - Configuring Connection Data Here's the URL and target id that the client uses for messaging using SignalR: Client - Establishing Connection Here's the client's SignalR service implementation: The ConnectAsync method above registers the identifier that the SignalR Hub (on the server) will route messages to. In this case, the identifier is the courier …
Implementing a custom Checkbox control
Building a Custom Checkbox Control This post is a code dump for a custom checkbox control. There's four main parts for this: Custom Control * Bindings * XAML Host Page * XAML * Viewmodel Bindings XAML Host Page Viewmodel
Xamarin.Forms: ShellContent Navigation
Intro I came across a scenario in which my app exposed multiple methods for navigating to a particular page. Method 1: XAML One exposed method was from the app menu in which the navigation was implemented in XAML: Method 2: Code-behind of Initial page Another exposed method was to perform navigation from another page's code-behind: Method …
Implementing a (FP inspired) Result type in C#
The following is a Result class: Here's a Service class: Here's some tests:
Talking to Bryan about Staying Current
Xamarin.Forms – Implementing ItemsSource for Custom Control
Here's some code for ItemsSource:
Xamarin.Forms Responsive Layout from Device Rotation
Intro This is a brain dump on implementing a responsive layout based on a device being in Portrait or Landscape mode. In summary, I used a ContentView's ControlTemplate to host a layout that depends on a device being in Portrait or Landscape mode. In addition, I then overrode the OnSizeAllocated method on the ContentPage. XAML …
Continue reading "Xamarin.Forms Responsive Layout from Device Rotation"