How to use the @scion/microfrontend-platform.MessageHeaders.AppSymbolicName function in @scion/microfrontend-platform

To help you get started, we’ve selected a few @scion/microfrontend-platform examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SchweizerischeBundesbahnen / scion-workbench / apps / microfrontend-apps / src / testing-app / manifest / manifest-request-handler.ts View on Github external
.subscribe((request: TopicMessage) => {
        const appSymbolicName = request.headers.get(MessageHeaders.AppSymbolicName);
        Beans.get(ManifestRegistry).registerIntents(appSymbolicName, [request.body.intent]);
      });
  }
github SchweizerischeBundesbahnen / scion-workbench / apps / microfrontend-apps / src / testing-app / manifest / manifest-request-handler.ts View on Github external
.pipe(mergeMap((request: TopicMessage) => {
          const manifestRegistry = Beans.get(ManifestRegistry);
          const replyTo = request.headers.get(MessageHeaders.ReplyTo);
          const appSymbolicName = request.headers.get(MessageHeaders.AppSymbolicName);

          return merge(of(null), manifestRegistry.intentChange$)
            .pipe(
              map(() => manifestRegistry.getIntentsByApplication(appSymbolicName)),
              switchMap(intents => Beans.get(MessageClient).publish$(replyTo, intents)),
              takeUntilUnsubscribe(replyTo),
            );
        }),
        takeUntil(this._destroy$),