Exemplo n.º 1
0
        public ActorFacade(IActorSystemAdapter actorSystem, ILogger logger)
        {
            if (actorSystem == null) throw new ArgumentNullException(nameof(actorSystem));
            if (logger == null) throw new ArgumentNullException(nameof(logger));

            ActorSystem = actorSystem;
            Logger = logger;
        }
Exemplo n.º 2
0
 public static ActorSelection ActorSelection(this IActorSystemAdapter actorSystem, ActorMetadata actor, ActorPathType path = ActorPathType.Absolute)
 {
     return(actorSystem.ActorSelection(actor.Path));
     //switch (path)
     //{
     //    case ActorPathType.Absolute:
     //        return actorSystem.ActorSelection(actor.AbsoluteUri);
     //    case ActorPathType.Relative:
     //        return actorSystem.ActorSelection(actor.RelativeUri);
     //    default:
     //        return actorSystem.ActorSelection(actor.AbsoluteUri);
     //}
 }
Exemplo n.º 3
0
        public ActorFacade(IActorSystemAdapter actorSystem, ILogger logger)
        {
            if (actorSystem == null)
            {
                throw new ArgumentNullException(nameof(actorSystem));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }

            ActorSystem = actorSystem;
            Logger      = logger;
        }
Exemplo n.º 4
0
 /// <summary>
 /// Resolves all singleton actors so that the instance has been created and does not throw exception when trying to retrieve it using ActorSelection later on.
 /// This will also trigger the actor's message subscriptions (in constructors) and do standard actor startup such as PreStart().
 /// </summary>
 /// <param name="actorSystem">The ActorSystem</param>
 private static void ResolveSingletonActors(IActorSystemAdapter actorSystem)
 {
     actorSystem.ActorOf(ActorRegistry.RootDirectory);
 }
        public CommandLineArgsParserFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
        {

        }
Exemplo n.º 6
0
        public RootDirectoryFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
        {

        }
Exemplo n.º 7
0
 public ImageFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
 {
 }
Exemplo n.º 8
0
 public RootDirectoryFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
 {
 }
Exemplo n.º 9
0
 /// <summary>
 /// Resolves all singleton actors so that the instance has been created and does not throw exception when trying to retrieve it using ActorSelection later on.
 /// This will also trigger the actor's message subscriptions (in constructors) and do standard actor startup such as PreStart().
 /// </summary>
 /// <param name="actorSystem">The ActorSystem</param>
 private static void ResolveSingletonActors(IActorSystemAdapter actorSystem)
 {
     actorSystem.ActorOf(ActorRegistry.RootDirectory);
 }
Exemplo n.º 10
0
 public NotebookFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
 {
 }
Exemplo n.º 11
0
 public CommandLineArgsParserFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
 {
 }
Exemplo n.º 12
0
        public NotebookFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
        {

        }
Exemplo n.º 13
0
 public SectionFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
 {
 }
Exemplo n.º 14
0
 public ProcessFacade(IActorSystemAdapter actorSystem, ILogger logger)
     : base(actorSystem, logger)
 {
 }
Exemplo n.º 15
0
 public ProcessFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
 {
 }
Exemplo n.º 16
0
 public SectionFacade(IActorSystemAdapter actorSystem, ILogger logger) : base(actorSystem, logger)
 {
     
 }