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


C# Aplus.GetService方法代码示例

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


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

示例1: ListenN

        public static AType ListenN(Aplus environment, AType name, AType function)
        {
            if (name.Type != ATypes.ASymbol || function.Type != ATypes.AFunc)
            {
                return AInteger.Create(-1);
            }

            return environment.GetService<AipcService>().Listen(function, name);
        }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:9,代码来源:ContextI.cs

示例2: ListenNPP

        public static AType ListenNPP(Aplus environment, AType protocol, AType port, AType name, AType function)
        {
            int portNumber = ExtractInteger(port, "i.listenNPP");

            if (protocol.Type != ATypes.ASymbol || name.Type != ATypes.ASymbol || function.Type != ATypes.AFunc)
            {
                return AInteger.Create(-1);
            }

            return environment.GetService<AipcService>().Listen(
                function, name, ConnectionAttribute.DEFAULT_HOST, portNumber, protocol);
        }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:12,代码来源:ContextI.cs

示例3: ConnectNHPP

 public static AType ConnectNHPP(
     Aplus environment, AType protocol, AType port, AType host, AType name, AType function)
 {
     int portNumber = ExtractInteger(port, "connectNHPP");
     return environment.GetService<AipcService>().Connect(function, name, host, portNumber, protocol);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:6,代码来源:ContextI.cs

示例4: Close

 public static AType Close(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.close");
     return environment.GetService<AipcService>().Close(handleNumber);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:5,代码来源:ContextI.cs

示例5: Open

 public static AType Open(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.open");
     return environment.GetService<AipcService>().Open(handleNumber);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:5,代码来源:ContextI.cs

示例6: Destroy

 public static AType Destroy(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.destroy");
     return environment.GetService<AipcService>().Destroy(handleNumber);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:5,代码来源:ContextI.cs

示例7: SyncRead

 public static AType SyncRead(Aplus environment, AType timeout, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.syncread");
     return environment.GetService<AipcService>().SyncRead(handleNumber, timeout);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:5,代码来源:ContextI.cs

示例8: Send

 public static AType Send(Aplus environment, AType message, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.send");
     return environment.GetService<AipcService>().Send(handleNumber, message);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:5,代码来源:ContextI.cs

示例9: WhatIs

 public static AType WhatIs(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.whatis");
     return environment.GetService<AipcService>().WhatIs(handleNumber);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:5,代码来源:ContextI.cs

示例10: SetAttribute

        public static AType SetAttribute(Aplus environment, AType value, AType attributeName, AType handle)
        {
            ExtractInteger(handle, "i.setattr");

            return environment.GetService<AipcService>().SetAttribute(handle.asInteger, attributeName, value);
        }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:6,代码来源:ContextI.cs

示例11: GetAttribute

 public static AType GetAttribute(Aplus environment, AType attributeName, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.getattr");
     return environment.GetService<AipcService>().GetAttribute(handleNumber, attributeName);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:5,代码来源:ContextI.cs

示例12: Attributes

 public static AType Attributes(Aplus environment, AType handle)
 {
     int handleNumber = ExtractInteger(handle, "i.attrs");
     return environment.GetService<AipcService>().Attributes(handleNumber);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:5,代码来源:ContextI.cs

示例13: Timeout

 public static AType Timeout(Aplus environment, AType argument)
 {
     return environment.GetService<AipcService>().GetTimeout(argument);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:4,代码来源:ContextI.cs

示例14: ConnectN

 public static AType ConnectN(Aplus environment, AType name, AType function)
 {
     return environment.GetService<AipcService>().Connect(function, name);
 }
开发者ID:sammoorhouse,项目名称:aplusdotnet,代码行数:4,代码来源:ContextI.cs


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