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)); }
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)); }