public Deploy WithFallback(Deploy other) { return(new Deploy { Path = Path, Config = Config.WithFallback(other.Config), RouterConfig = RouterConfig.WithFallback(other.RouterConfig), Scope = Scope.WithFallback(other.Scope), Dispatcher = Dispatcher == NoDispatcherGiven ? other.Dispatcher : Dispatcher, Mailbox = Mailbox == NoMailboxGiven ? other.Mailbox : Mailbox, }); }
/// <summary> /// Creates a new <see cref="Akka.Actor.Deploy" /> from this deployment using another <see cref="Akka.Actor.Deploy" /> /// to backfill options that might be missing from this deployment. /// /// <note> /// This method is immutable and returns a new instance of <see cref="Akka.Actor.Deploy" />. /// </note> /// </summary> /// <param name="other">The <see cref="Akka.Actor.Deploy" /> used for fallback configuration.</param> /// <returns>A new <see cref="Akka.Actor.Deploy" /> using <paramref name="other" /> for fallback configuration.</returns> public Deploy WithFallback(Deploy other) { return(new Deploy ( Path, Config.Equals(other.Config) ? Config: Config.WithFallback(other.Config), RouterConfig.WithFallback(other.RouterConfig), Scope.WithFallback(other.Scope), Dispatcher == NoDispatcherGiven ? other.Dispatcher : Dispatcher, Mailbox == NoMailboxGiven ? other.Mailbox : Mailbox )); }