December 12, 2023 · 5 min read
During my recent project where I migrated an ASP.NET Core application to Azure SignalR Service, I encountered a notable issue with HttpContext. In standard ASP.NET SignalR setups, I could easily access HttpContext via IHttpContextAccessor in my Hub class. This approach had been working flawlessly for me for years. However, after the migration to Azure SignalR Service, I noticed that IHttpContextAccessor didn't provide the same level of information. This change is understandable, considering the connection in Azure SignalR Service is between the client and Azure, rather than directly to my server's hub. To adapt, I shifted my strategy to directly pass essential data, such as timezone information, from the client to the hub. This method of passing parameters directly turned out to be a more efficient solution. Additionally, I appreciated how Azure SignalR Service manages IPrincipal information from HttpContext, which is useful for identity management using the Context.User property. This experience was a valuable addition to my ongoing journey of mastering evolving technologies in the .NET and Azure ecosystems.
February 24, 2021 · 5 min read
Some APIs use Epoch time to designate a DateTime object. In Azure Logic Apps, how do you convert this into something useful?
September 15, 2020 · 5 min read
With the new Azure Static Web Apps, you can include Azure Functions as a part of your deployment which gives you the best of both worlds when you deploy static sites. Crazy performance, but access to Azure Functions when you absolutely need to write a little bit of code.