Unit Test Service Fabric Actors when Actors call other Actors

In order to be able to effectively unit test Azure Service Fabric Actors we use a NuGet package called "ServiceFabric.Mocks”. It’s truly fantastic. As the name implies it allows you to Mock all Service Fabric services, not just Actors but the Actor model has unique structure that makes it exceptionally helpful in testing. The way … Continue reading Unit Test Service Fabric Actors when Actors call other Actors

Advertisements

Updating Service Fabric version for an Actor: Step by Step

ONE. Upgrade Actor Projects to .NET Core 2.1 TWO. Update Remoting Provider Decorator [assembly: FabricTransportActorRemotingProvider(RemotingListenerVersion = RemotingListenerVersion.V2, RemotingClientVersion = RemotingClientVersion.V2)] THREE. Remove all references from Tests Project First remove all references to dependent projects (Actor, Actor.Interfaces, Actor.Mocks, Actor.Model). Second open the Package Manager console and run the following commands: Uninstall-Package Microsoft.ServiceFabric Uninstall-Package Microsoft.ServiceFabric.Services Uninstall-Package Microsoft.ServiceFabric.Services.Remoting … Continue reading Updating Service Fabric version for an Actor: Step by Step

DLLHell 2018: Upgrading Service Fabric Project from v3.1.283 to v3.2.176

I’m getting an error from each of my xUnit test projects that there is a package downgrade from Microsoft.NETCore.App from 2.0.9 to 2.0.0. I tried isolating the issue to one project so I unloaded all the test projects in my solution. Then I tried upgrading the version of .NET Core from v2.0 to v2.1. However … Continue reading DLLHell 2018: Upgrading Service Fabric Project from v3.1.283 to v3.2.176

Actors Referencing .NET Standard ‘Works On My Machine’

So the age old ‘works on my machine’ is back at it again with Service Fabric Reliable Actors and likely Reliable Services in general (Stateless or Stateful). As you can see from the status my local dev cluster is reporting ‘it works on my machine’. I should be done right? 😊 I have been trying … Continue reading Actors Referencing .NET Standard ‘Works On My Machine’

Deploying to Standalone Cluster: FileNotFoundException

In my previous post, I demonstrated how I overcame some remote connectivity challenges that were preventing me from accessing my Service Fabric Cluster via PowerShell from other machines on my local network. Since then I have been able to deploy to my Standalone cluster using Visual Studio tools. Error event: SourceId='System.Hosting', Property='CodePackageActivation:Code:EntryPoint'. There was an … Continue reading Deploying to Standalone Cluster: FileNotFoundException

Standalone Service Fabric PowerShell Remote Connectivity Challenges with DevCluster

So after I got my Standalone Service Fabric Cluster setup and working I decided the Unsecure template wasn’t good enough and I wanted to try my hand at the x509 template. I went through the entire process (I’ll post on that later) however I was unable to access the Service Fabric Administration Console nor was … Continue reading Standalone Service Fabric PowerShell Remote Connectivity Challenges with DevCluster

Swagger UI authentication with Azure AD B2C on Service Fabric .NET Core

I’ve been trying to figure out how to enable authentication on Swagger UI setup on an ASP.NET Core API hosted on Service Fabric (currently hosted locally). I initially setup the Service Fabric project using the wizard and immediately connected it with an application in my Azure AD B2C tenant. This appears to work but when … Continue reading Swagger UI authentication with Azure AD B2C on Service Fabric .NET Core

File Upload Handler built using Azure Service Fabric

I’ve been experimenting with different scenarios on Service Fabric and one came to mind immediately. Uploading large, multi-part files. I got a working prototype working in short order. I still need to fully vet it to ensure that it scales but it “works on my machine”. 😊 You can go get my code from GitHub. … Continue reading File Upload Handler built using Azure Service Fabric

Service Fabric Samples Dissection: Visual Objects

Azure Service Fabric is not for the faint of heart. It is extremely cool but it’s a bit different than the traditional way of doing things in .NET projects. Thanks to a particularly persuasive client of mine, I’ve decided to dissect some of the samples available from Microsoft so that someone new to Service Fabric … Continue reading Service Fabric Samples Dissection: Visual Objects