Author Archives: abatishchev

Carnation Anapa Winery, part 1, day 1: Petite Sirah

Today I destemmed and crushed the bucket of Petite Sirah. My weight: 78.95, my weight with container: 89.35, i.e. 10.4 kg of raw grapes. My weigh: 78.00, my weight with bucket: 87.10, i.e. 9.1 kg of grape juice. Equipment used. … Continue reading

Posted in Winemaking | Leave a comment

Carnation Anapa Winery, part 1, day 1: the journey begins

Hi there! My name is Alex. I write emails and in C# at Microsoft at day, I like various liberal staff on Twitter at night. I’m a diabetic on high fat/low carbs all day around. I’m a wine enthusiast. And … Continue reading

Posted in Winemaking | Leave a comment

HeartbeatActorServiceType is invalid and cannot be registered. Only ServiceTypes specified in the ServiceManifest can register.

If you try to register an actor within a Service Fabric service like this: but getting the following exception: System.Fabric.FabricException: ‘Invalid Service Type’ Inner Exception: COMException: Exception from HRESULT: 0x80071C21 then in Event Log (Applications and Services Logs -> Microsoft-Service-Fabric … Continue reading

Posted in Programming | Tagged | Leave a comment

Service Fabric and Dependency Injection, part 3: Unit testing

This is a series of blog posts: Part 1: Stateful service Part 2: Stateless service Part 3: Unit testing Unit testing of the final construct we’ve got in previous two parts would be challenging due to a number of reasons: … Continue reading

Posted in Programming | Tagged , | Leave a comment

Service Fabric and Dependency Injection, part 2: Stateless Service

This is a series of blog posts: Part 1: Stateful service Part 2: Stateless service Part 3: Unit testing Last time we instantiated a stateful service from a DI container, it was elegant and relatively easy.¬†What I can’t say about … Continue reading

Posted in Programming | Tagged , | Leave a comment

Service Fabric and Dependency Injection, part 1: Stateful Service

This is a series of blog posts: Part 1: Statefull service Part 2: Stateless service Part 3: Unit testing The template of a Service Fabric application that is shipped with Visual Studio instantiates all services explicitly. Like and any other … Continue reading

Posted in Programming | Tagged , | Leave a comment

How to deploy Service Fabric application using ARM template and PowerShell, part 2: ARM

This is a series of blog posts: Part 1: PowerShell Part 2: ARM To publish an ARM template using whichever mechanism you’d like, first you need the actual ARM template. Here’s an example of an application consisting of one stateless … Continue reading

Posted in Programming | Tagged , , | 4 Comments

How to package Service Fabric application into SFPKG in .NET Core using MSBuild task

This task wouldn’t require much efforts but: Service Fabric doesn’t support packaging its “package” (which is not a real package but just a directory) into .sfpkg out-of-the-box. Only suggests to use ZipFile.CreateFromDirectory. MSBuildTasks doesn’t support .NET Core so we can’t … Continue reading

Posted in Programming | Tagged , , | Leave a comment

How to deploy Service Fabric application using ARM template and PowerShell, part 1: PowerShell

This is a series of blog posts: Part 1: PowerShell Part 2: ARM Prerequisites: You have your cluster up and running. How to achieve that is outside of the scope of this series Cluster has all necessary certificates deployedddeplo as … Continue reading

Posted in Programming | Tagged , , | Leave a comment

How to remove ARM resources for Service Fabric application and service using PowerShell

First you need to remove the resource corresponding to the application itself: And then the resource corresponding to the service:

Posted in Programming | Tagged , , | Leave a comment