Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 15:50
    brah-mcdude opened #5531
  • 15:09
    Aaronontheweb commented #5529
  • 14:32
    Aaronontheweb labeled #5530
  • 14:32

    Aaronontheweb on dev

    Changed the getting started `hr… (compare)

  • 14:32
    Aaronontheweb closed #5530
  • 13:20
    Aaronontheweb commented #5527
  • 06:39
    eaba opened #5530
  • 01:33
    brah-mcdude edited #5529
  • 01:25
    brah-mcdude edited #5529
  • 01:24
    brah-mcdude opened #5529
  • Jan 22 19:12

    Aaronontheweb on dev

    fix getting started link (#5527) (compare)

  • Jan 22 19:12
    Aaronontheweb closed #5527
  • Jan 22 19:10
    Aaronontheweb labeled #5528
  • Jan 22 19:10
    Aaronontheweb labeled #5528
  • Jan 22 19:10
    Aaronontheweb opened #5528
  • Jan 22 19:08
    Aaronontheweb auto_merge_enabled #5527
  • Jan 22 19:07
    Aaronontheweb labeled #5527
  • Jan 22 19:07
    Aaronontheweb opened #5527
  • Jan 22 18:54
    Aaronontheweb labeled #5526
  • Jan 22 18:54
    Aaronontheweb labeled #5526
Andreas Dirnberger
@Zetanova
i think the feature to handle messages by reflection is now in some kind of helper class
Jari Pennanen
@Ciantic
I would like to ideally define just interfaces in the listening part
no classes at all
and no assembly linking
Andreas Dirnberger
@Zetanova
its not importend what it is, the idea is myInstanceActor.Handle((dynamic)message)
one sec
protected override sealed bool Receive(object message)
        {
            MethodInfo method = GetType().GetMethod("Handle", new[] {message.GetType()});
            if (method == null)
            {
                return false;
            }

            method.Invoke(this, new[] {message});
            return true;
        }
its the current code for typedActor
GetType().GetMethod() is i think pritty slow and Handle((dynamic)message) with trycatch would be much faster
but never the less
Jari Pennanen
@Ciantic
public interface Greet {
int Id { get; set; }
string Name { get; set; }
}
ReceiveStructure<IGreet>(greet => Console.WriteLine("Hello {0}", greet.Name));
Andreas Dirnberger
@Zetanova
if u make an own actor base
that just looks up on the bases interface or class instance
for the handler method
and calls it
ten you have your decopling
Jari Pennanen
@Ciantic
hmm
Andreas Dirnberger
@Zetanova
of course Context is somethign u will need
Jari Pennanen
@Ciantic
shouldn't it check the type?
Andreas Dirnberger
@Zetanova
and IActorRef
Jari Pennanen
@Ciantic
I mean the fields
not the type name, which might not be available
Maciek Misztal
@mmisztal1980
good morning
anyone know if Akka.Remote supports port sharing?
Andreas Dirnberger
@Zetanova
unlikly
Maciek Misztal
@mmisztal1980
my scenario is : attempt to run multiple lighthouse instances in a servicefarbric cluster - the local cluster has 5 virtual nodes, but they share the same physical host - so I was curious, if I can get it up and running that way. Apparently the SF communication listeners need to support port sharing :/
Andreas Dirnberger
@Zetanova
i am not 100% sure, but for port sharing u need native support in the plattform to route the request to the proper process
like http.sys
Maciek Misztal
@mmisztal1980
seems that there's a port sharing service available https://msdn.microsoft.com/en-us/library/aa395195(v=vs.110).aspx
and it's being used in WCF
Andreas Dirnberger
@Zetanova
yes, WCF
its SOAP
Jari Pennanen
@Ciantic
namespace ConsoleApplication11
{
    [ResultMatches("MyCompany.OtherAssembly.Greet")]
    public interface IGreet
    {
        public string Who { get; set; }
    }

    public class GreetingActor : ReceiveActor
    {
        public GreetingActor()
        {
            Receive<IGreet>(greet => Console.WriteLine("Hello {0}", greet.Who));
        }
    }
}
I wonder would that work
having own attribute there
which did the "connection"
then I would only need to agree on that string
and not link the assemblies
Andreas Dirnberger
@Zetanova
?
and how does the message implementation looks like?
Jari Pennanen
@Ciantic
sending part?
Andreas Dirnberger
@Zetanova
the message implementation is usualy put in a shared assembly
and dont realy need link to akka
you have then
Jari Pennanen
@Ciantic
yes but I wanted to have one without shared message implementation
Andreas Dirnberger
@Zetanova
MyClient.dll
MyBase.dll
MySystem.dll
yes it can work, but its slow and very error prone
Vagif Abilov
@object
@Horusiath PR is submitted with clarification in PR comment.