当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript service_message_broker.ServiceMessageBrokerFactory类代码示例

本文整理汇总了TypeScript中angular2/src/web_workers/shared/service_message_broker.ServiceMessageBrokerFactory的典型用法代码示例。如果您正苦于以下问题:TypeScript ServiceMessageBrokerFactory类的具体用法?TypeScript ServiceMessageBrokerFactory怎么用?TypeScript ServiceMessageBrokerFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ServiceMessageBrokerFactory类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: constructor

 constructor(brokerFactory: ServiceMessageBrokerFactory, private _renderCompiler: RenderCompiler) {
   var broker = brokerFactory.createMessageBroker(RENDER_COMPILER_CHANNEL);
   broker.registerMethod("compileHost", [RenderDirectiveMetadata],
                         bind(this._renderCompiler.compileHost, this._renderCompiler),
                         ProtoViewDto);
   broker.registerMethod("compile", [ViewDefinition],
                         bind(this._renderCompiler.compile, this._renderCompiler), ProtoViewDto);
   broker.registerMethod(
       "mergeProtoViewsRecursively", [RenderProtoViewRef],
       bind(this._renderCompiler.mergeProtoViewsRecursively, this._renderCompiler),
       RenderProtoViewMergeMapping);
 }
开发者ID:KenWilliamson,项目名称:Angular2HostedMobileApp,代码行数:12,代码来源:render_compiler.ts

示例2: constructor

 constructor(brokerFactory: ServiceMessageBrokerFactory, private _bus: MessageBus,
             private _serializer: Serializer,
             private _renderViewWithFragmentsStore: RenderViewWithFragmentsStore,
             private _renderer: Renderer) {
   var broker = brokerFactory.createMessageBroker(RENDERER_CHANNEL);
   broker.registerMethod("createRootHostView",
                         [RenderProtoViewRef, PRIMITIVE, PRIMITIVE, PRIMITIVE],
                         bind(this._createRootHostView, this));
   broker.registerMethod("createView", [RenderProtoViewRef, PRIMITIVE, PRIMITIVE],
                         bind(this._createView, this));
   broker.registerMethod("destroyView", [RenderViewRef],
                         bind(this._renderer.destroyView, this._renderer));
   broker.registerMethod("attachFragmentAfterFragment", [RenderFragmentRef, RenderFragmentRef],
                         bind(this._renderer.attachFragmentAfterFragment, this._renderer));
   broker.registerMethod("attachFragmentAfterElement", [WebWorkerElementRef, RenderFragmentRef],
                         bind(this._renderer.attachFragmentAfterElement, this._renderer));
   broker.registerMethod("detachFragment", [RenderFragmentRef],
                         bind(this._renderer.detachFragment, this._renderer));
   broker.registerMethod("hydrateView", [RenderViewRef],
                         bind(this._renderer.hydrateView, this._renderer));
   broker.registerMethod("dehydrateView", [RenderViewRef],
                         bind(this._renderer.dehydrateView, this._renderer));
   broker.registerMethod("setText", [RenderViewRef, PRIMITIVE, PRIMITIVE],
                         bind(this._renderer.setText, this._renderer));
   broker.registerMethod("setElementProperty", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                         bind(this._renderer.setElementProperty, this._renderer));
   broker.registerMethod("setElementAttribute", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                         bind(this._renderer.setElementAttribute, this._renderer));
   broker.registerMethod("setElementClass", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                         bind(this._renderer.setElementClass, this._renderer));
   broker.registerMethod("setElementStyle", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                         bind(this._renderer.setElementStyle, this._renderer));
   broker.registerMethod("invokeElementMethod", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                         bind(this._renderer.invokeElementMethod, this._renderer));
   broker.registerMethod("setEventDispatcher", [RenderViewRef],
                         bind(this._setEventDispatcher, this));
 }
开发者ID:KenWilliamson,项目名称:Angular2HostedMobileApp,代码行数:37,代码来源:renderer.ts

示例3: constructor

 constructor(brokerFactory: ServiceMessageBrokerFactory, private _xhr: XHR) {
   var broker = brokerFactory.createMessageBroker(XHR_CHANNEL);
   broker.registerMethod("get", [PRIMITIVE], bind(this._xhr.get, this._xhr), PRIMITIVE);
 }
开发者ID:KenWilliamson,项目名称:Angular2HostedMobileApp,代码行数:4,代码来源:xhr_impl.ts

示例4: start

  start(): void {
    var broker = this._brokerFactory.createMessageBroker(RENDERER_CHANNEL);
    this._bus.initChannel(EVENT_CHANNEL);
    this._eventDispatcher = new EventDispatcher(this._bus.to(EVENT_CHANNEL), this._serializer);

    broker.registerMethod("renderComponent", [RenderComponentType, PRIMITIVE],
                          bind(this._renderComponent, this));

    broker.registerMethod("selectRootElement", [RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._selectRootElement, this));
    broker.registerMethod("createElement",
                          [RenderStoreObject, RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._createElement, this));
    broker.registerMethod("createViewRoot", [RenderStoreObject, RenderStoreObject, PRIMITIVE],
                          bind(this._createViewRoot, this));
    broker.registerMethod("createTemplateAnchor", [RenderStoreObject, RenderStoreObject, PRIMITIVE],
                          bind(this._createTemplateAnchor, this));
    broker.registerMethod("createText",
                          [RenderStoreObject, RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._createText, this));
    broker.registerMethod("projectNodes", [RenderStoreObject, RenderStoreObject, RenderStoreObject],
                          bind(this._projectNodes, this));
    broker.registerMethod("attachViewAfter",
                          [RenderStoreObject, RenderStoreObject, RenderStoreObject],
                          bind(this._attachViewAfter, this));
    broker.registerMethod("detachView", [RenderStoreObject, RenderStoreObject],
                          bind(this._detachView, this));
    broker.registerMethod("destroyView", [RenderStoreObject, RenderStoreObject, RenderStoreObject],
                          bind(this._destroyView, this));
    broker.registerMethod("setElementProperty",
                          [RenderStoreObject, RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._setElementProperty, this));
    broker.registerMethod("setElementAttribute",
                          [RenderStoreObject, RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._setElementAttribute, this));
    broker.registerMethod("setBindingDebugInfo",
                          [RenderStoreObject, RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._setBindingDebugInfo, this));
    broker.registerMethod("setElementClass",
                          [RenderStoreObject, RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._setElementClass, this));
    broker.registerMethod("setElementStyle",
                          [RenderStoreObject, RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._setElementStyle, this));
    broker.registerMethod("invokeElementMethod",
                          [RenderStoreObject, RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._invokeElementMethod, this));
    broker.registerMethod("setText", [RenderStoreObject, RenderStoreObject, PRIMITIVE],
                          bind(this._setText, this));
    broker.registerMethod("listen", [RenderStoreObject, RenderStoreObject, PRIMITIVE, PRIMITIVE],
                          bind(this._listen, this));
    broker.registerMethod("listenGlobal", [RenderStoreObject, PRIMITIVE, PRIMITIVE, PRIMITIVE],
                          bind(this._listenGlobal, this));
    broker.registerMethod("listenDone", [RenderStoreObject, RenderStoreObject],
                          bind(this._listenDone, this));
  }
开发者ID:844496869,项目名称:angular,代码行数:56,代码来源:renderer.ts

示例5: start

  start(): void {
    var broker = this._brokerFactory.createMessageBroker(RENDERER_CHANNEL);
    this._bus.initChannel(EVENT_CHANNEL);

    broker.registerMethod("registerComponentTemplate", [RenderComponentTemplate],
                          bind(this._renderer.registerComponentTemplate, this._renderer));
    broker.registerMethod("createProtoView", [PRIMITIVE, WebWorkerTemplateCmd, PRIMITIVE],
                          bind(this._createProtoView, this));
    broker.registerMethod("createRootHostView",
                          [RenderProtoViewRef, PRIMITIVE, PRIMITIVE, PRIMITIVE],
                          bind(this._createRootHostView, this));
    broker.registerMethod("createView", [RenderProtoViewRef, PRIMITIVE, PRIMITIVE],
                          bind(this._createView, this));
    broker.registerMethod("destroyView", [RenderViewRef], bind(this._destroyView, this));
    broker.registerMethod("attachFragmentAfterFragment", [RenderFragmentRef, RenderFragmentRef],
                          bind(this._renderer.attachFragmentAfterFragment, this._renderer));
    broker.registerMethod("attachFragmentAfterElement", [WebWorkerElementRef, RenderFragmentRef],
                          bind(this._renderer.attachFragmentAfterElement, this._renderer));
    broker.registerMethod("detachFragment", [RenderFragmentRef],
                          bind(this._renderer.detachFragment, this._renderer));
    broker.registerMethod("hydrateView", [RenderViewRef],
                          bind(this._renderer.hydrateView, this._renderer));
    broker.registerMethod("dehydrateView", [RenderViewRef],
                          bind(this._renderer.dehydrateView, this._renderer));
    broker.registerMethod("setText", [RenderViewRef, PRIMITIVE, PRIMITIVE],
                          bind(this._renderer.setText, this._renderer));
    broker.registerMethod("setElementProperty", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                          bind(this._renderer.setElementProperty, this._renderer));
    broker.registerMethod("setElementAttribute", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                          bind(this._renderer.setElementAttribute, this._renderer));
    broker.registerMethod("setBindingDebugInfo", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                          bind(this._renderer.setBindingDebugInfo, this._renderer));
    broker.registerMethod("setElementClass", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                          bind(this._renderer.setElementClass, this._renderer));
    broker.registerMethod("setElementStyle", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                          bind(this._renderer.setElementStyle, this._renderer));
    broker.registerMethod("invokeElementMethod", [WebWorkerElementRef, PRIMITIVE, PRIMITIVE],
                          bind(this._renderer.invokeElementMethod, this._renderer));
    broker.registerMethod("setEventDispatcher", [RenderViewRef],
                          bind(this._setEventDispatcher, this));
  }
开发者ID:Caplu,项目名称:ng2-dribbble,代码行数:41,代码来源:renderer.ts

示例6: start

 start(): void {
   var broker = this._brokerFactory.createMessageBroker(XHR_CHANNEL);
   broker.registerMethod("get", [PRIMITIVE], bind(this._xhr.get, this._xhr), PRIMITIVE);
 }
开发者ID:beta3000,项目名称:hola-angular2,代码行数:4,代码来源:xhr_impl.ts

示例7: createServiceMessageBroker

 createServiceMessageBroker(channel: string, runInZone: boolean = true): ServiceMessageBroker {
   return this._serviceMessageBrokerFactory.createMessageBroker(channel, runInZone);
 }
开发者ID:chiragjraval,项目名称:AdvisroySystemPOC,代码行数:3,代码来源:impl.ts


注:本文中的angular2/src/web_workers/shared/service_message_broker.ServiceMessageBrokerFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。