コード例 #1
0
ファイル: RootDirectoryActor.cs プロジェクト: eaardal/delbert
        public RootDirectoryActor(ICommandLineArgsParserFacade commandLineArgsParser, ILogger log, IMessageBus messageBus)
            : base(log)
        {
            if (messageBus == null) throw new ArgumentNullException(nameof(messageBus));
            if (commandLineArgsParser == null) throw new ArgumentNullException(nameof(commandLineArgsParser));

            _messageBus = messageBus;
            _commandLineArgsParser = commandLineArgsParser;

            Receive<SetRootDirectory>(msg => OnSetRootDirectory(msg));
            Receive<SetRootDirectoryFromCommandLineArgumentsIfExists>(msg => OnSetRootDirectoryFromCommandLineArgumentsIfExists(msg));
            Receive<Internal.GetRootDirectoryFromCommandLineResult>(msg => OnGetRootDirectoryFromCommandLineResult(msg));
        }
コード例 #2
0
ファイル: RootDirectoryActor.cs プロジェクト: eaardal/delbert
        public RootDirectoryActor(ICommandLineArgsParserFacade commandLineArgsParser, ILogger log, IMessageBus messageBus)
            : base(log)
        {
            if (messageBus == null)
            {
                throw new ArgumentNullException(nameof(messageBus));
            }
            if (commandLineArgsParser == null)
            {
                throw new ArgumentNullException(nameof(commandLineArgsParser));
            }

            _messageBus            = messageBus;
            _commandLineArgsParser = commandLineArgsParser;

            Receive <SetRootDirectory>(msg => OnSetRootDirectory(msg));
            Receive <SetRootDirectoryFromCommandLineArgumentsIfExists>(msg => OnSetRootDirectoryFromCommandLineArgumentsIfExists(msg));
            Receive <Internal.GetRootDirectoryFromCommandLineResult>(msg => OnGetRootDirectoryFromCommandLineResult(msg));
        }