How to use the @scion/workbench-application-platform.api.ManifestCommands.FindCapability function in @scion/workbench-application-platform

To help you get started, we’ve selected a few @scion/workbench-application-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 / projects / scion / workbench-application-platform / src / lib / manifest-capability / manifest-registry-intent-handler.service.ts View on Github external
this.queryManifests(envelope as MessageEnvelope);
        break;
      }
      case ManifestCommands.FindManifest: {
        this.queryManifest(envelope as MessageEnvelope);
        break;
      }
      case ManifestCommands.FindCapabilityProviders: {
        this.queryCapabilityProviders(envelope as MessageEnvelope);
        break;
      }
      case ManifestCommands.FindCapabilityConsumers: {
        this.queryCapabilityConsumers(envelope as MessageEnvelope);
        break;
      }
      case ManifestCommands.FindCapability: {
        this.queryCapability(envelope as MessageEnvelope);
        break;
      }
      case ManifestCommands.FindCapabilities: {
        this.queryCapabilities(envelope as MessageEnvelope);
        break;
      }
      case ManifestCommands.RegisterCapability: {
        this.registerCapability(envelope as MessageEnvelope);
        break;
      }
      case ManifestCommands.UnregisterCapability: {
        this.unregisterCapability(envelope as MessageEnvelope);
        break;
      }
      default: {
github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application.core / src / lib / manifest-registry.service.ts View on Github external
public capability$(capabilityId: string): Observable {
    const intentMessage: ManifestRegistryIntentMessages.FindCapability = {
      type: PlatformCapabilityTypes.ManifestRegistry,
      qualifier: NilQualifier,
      payload: {
        command: ManifestCommands.FindCapability,
        capabilityId: capabilityId,
      },
    };

    return Platform.getService(MessageBus).requestReceive$({channel: 'intent', message: intentMessage}, {once: true})
      .pipe(extractMessage(null));
  }

@scion/workbench-application-platform

SCION Workbench Application Platform is an extension of SCION Workbench to integrate content from multiple web applications in a coherent way, thus enabling a micro frontend architecture for allowing different front-end frameworks to co-exist and independ

EPL-2.0
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis

Popular @scion/workbench-application-platform functions