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


C# AllJoyn.GetInterface方法代码示例

本文整理汇总了C#中AllJoynUnity.AllJoyn.GetInterface方法的典型用法代码示例。如果您正苦于以下问题:C# AllJoyn.GetInterface方法的具体用法?C# AllJoyn.GetInterface怎么用?C# AllJoyn.GetInterface使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AllJoynUnity.AllJoyn的用法示例。


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

示例1: TestBusObject

            public TestBusObject(AllJoyn.BusAttachment bus, string path)
                : base(bus, path, false)
            {
                AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface(INTERFACE_NAME);
                AllJoyn.QStatus status = AddInterface(exampleIntf);
                if(!status)
                {
                    chatText = "Chat Failed to add interface " + status.ToString() + "\n" + chatText;
                    Debug.Log("Chat Failed to add interface " + status.ToString());
                }

                chatMember = exampleIntf.GetMember("chat");
            }
开发者ID:ADVANTECH-Corp,项目名称:node-alljoyn,代码行数:13,代码来源:BasicChat.cs

示例2: TestBusObject

            public TestBusObject(AllJoyn.BusAttachment bus, string path)
                : base(path, false)
            {
                AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface(INTERFACE_NAME);
                AllJoyn.QStatus status = AddInterface(exampleIntf);
                if(!status)
                {
                    Console.WriteLine("Server Failed to add interface {0}", status);
                }

                AllJoyn.InterfaceDescription.Member catMember = exampleIntf.GetMember("cat");
                status = AddMethodHandler(catMember, this.Cat);
                if(!status)
                {
                    Console.WriteLine("Server Failed to add method handler {0}", status);
                }
            }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:17,代码来源:BasicServer.cs

示例3: TestBusObject

			public TestBusObject(AllJoyn.BusAttachment bus, string path)
				: base(path, false)
			{
				AllJoyn.InterfaceDescription testIntf = bus.GetInterface("org.alljoyn.test.BusAttachment");
				AllJoyn.QStatus status = AddInterface(testIntf);
				Assert.Equal(AllJoyn.QStatus.OK, status);

				testSignalMember = testIntf.GetMember("testSignal");
			}
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:9,代码来源:BusAttachmentTest.cs

示例4: MethodTestBusObject

			public MethodTestBusObject(AllJoyn.BusAttachment bus, string path)
				: base(path, false)
			{
				// add the interface to the bus object
				AllJoyn.InterfaceDescription testIntf = bus.GetInterface(INTERFACE_NAME);
				AllJoyn.QStatus status = AddInterface(testIntf);
				Assert.Equal(AllJoyn.QStatus.OK, status);

				// register a method handler for the ping method
				AllJoyn.InterfaceDescription.Member pingMember = testIntf.GetMember("ping");
				status = AddMethodHandler(pingMember, this.Ping);
				Assert.Equal(AllJoyn.QStatus.OK, status);
			}
开发者ID:peterdocter,项目名称:Coco2dxDemo,代码行数:13,代码来源:BusObjectTest.cs

示例5: TestBusObject

            public TestBusObject(AllJoyn.BusAttachment bus, string path)
                : base(path, false)
            {
                AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface (INTERFACE_NAME);
                AllJoyn.QStatus status = AddInterface (exampleIntf);
                if (!status) {
                    serverText += "Server Failed to add interface " + status.ToString () + "\n";
                    Debug.Log ("Server Failed to add interface " + status.ToString ());
                }

                AllJoyn.InterfaceDescription.Member catMember = exampleIntf.GetMember ("cat");
                status = AddMethodHandler (catMember, this.Cat);
                if (!status) {
                    serverText += "Server Failed to add method handler " + status.ToString () + "\n";
                    Debug.Log ("Server Failed to add method handler " + status.ToString ());
                }
            }
开发者ID:hybridgroup,项目名称:alljoyn,代码行数:17,代码来源:BasicServer.cs

示例6: TestBusObject

            public TestBusObject(AllJoyn.BusAttachment bus, string path)
                : base(path, false)
            {
                AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface(INTERFACE_NAME);
                AllJoyn.QStatus status = AddInterface(exampleIntf);
                if(!status)
                {
                    DebugLog("RHR Failed to add interface " + status.ToString());
                }

                vectorMember = exampleIntf.GetMember("vector");
            }
开发者ID:hayio,项目名称:run-human-run,代码行数:12,代码来源:RHRMultiplayerHandler.cs


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