Git Product home page Git Product logo

Comments (10)

yevhen avatar yevhen commented on June 21, 2024

?

from orleankka.

oleksandrmelnychenko avatar oleksandrmelnychenko commented on June 21, 2024

ConsoleApp3.zip

from orleankka.

oleksandrmelnychenko avatar oleksandrmelnychenko commented on June 21, 2024

Please help, it's default implementation, can you tell me, what I'm doing wrong? If I use one assembly, it's working, when I do move Actors code to another assembly, it doesn't.
image

from orleankka.

aprooks avatar aprooks commented on June 21, 2024

you should register the new assembly like this:

    sb.ConfigureApplicationParts(fun x ->
           x.AddFromAppDomain().WithCodeGeneration()|> ignore
           x.AddApplicationPart(typeof<GreeterMessage>.Assembly).WithCodeGeneration() |> ignore
           ) |> ignore

You can further split messages and actor implementations to 2 assemblies, so that client would know only about messages while host should have registered both messages and actor implementations. Check client/server examples as well

from orleankka.

oleksandrmelnychenko avatar oleksandrmelnychenko commented on June 21, 2024

I have tried to do many variations, but always catch exceptions.
image

from orleankka.

aprooks avatar aprooks commented on June 21, 2024

Sorry for not checking more thoroughly. I've reproed this error but have not figured out what's wrong so far.

from orleankka.

oleksandrmelnychenko avatar oleksandrmelnychenko commented on June 21, 2024

Thanks, hope it will be resolved. I want to setup it in a big project, akka.net will wait.

from orleankka.

aprooks avatar aprooks commented on June 21, 2024

OK there were 2 issues.

First, add a reference to Orleans specific object like here: https://github.com/aprooks/orleankka-fsharp-intro/blob/master/FByke.Contracts/Library.fs#L23-L29 (can be a separate file as well)

second, remove application part of host, since you don't have any grain classes there. Like this:

    cb.ConfigureApplicationParts(fun x ->
            x.AddApplicationPart(typeof<GreeterMessage>.Assembly).WithCodeGeneration() |> ignore )  |> ignore

the second issue seems to be a bug. I will test again and file a proper report if it is confirmed

from orleankka.

oleksandrmelnychenko avatar oleksandrmelnychenko commented on June 21, 2024

Have added, that "type". It's ok with it. Thanks for the quick response !!!

from orleankka.

aprooks avatar aprooks commented on June 21, 2024

No problem. Feel free to join gitter channel https://gitter.im/OrleansContrib/Orleankka for quick questions.

I'll close this issue and create followups

from orleankka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.