Search code examples
orleans

How to generate or create Grain Factory/Proxy?


I was introduced to project Orleans recently and currently doing some reading and proof-of-concepts.

In addition to the fact that almost all articles and tutorials I came across do not work as is now (mostly due to APIs changes), they also require the installation the Orleans SDK; which contains libraries, documentations, project templates, and so on.

I decided to do it the "hard way" and use the standard project templates (Console application and Class library), and NuGet; with some help from the boilerplate code from Orleans project templates (OrleansHostWrapper).

There is one thing I wasn't able to figure out how to do; which is generating the Grain factory/proxy. When I run the Silo I get the message:

Cannot find generated factory type for interface

Can anyone help in this? Is there another way to generate the factory without the need to install the Orleans SDK?


Solution

  • I have asked the question in Orleans Codeplex site, and got this answer from Sergey Bykov:

    Microsoft.Orleans.Templates.Interfaces for Grain interface projects and Microsoft.Orleans.Templates.Grains for Grain implementation projects enable building those projects with no SDK installed.