本文整理汇总了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);
}
示例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);
}
示例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);
}
示例4: Close
public static AType Close(Aplus environment, AType handle)
{
int handleNumber = ExtractInteger(handle, "i.close");
return environment.GetService<AipcService>().Close(handleNumber);
}
示例5: Open
public static AType Open(Aplus environment, AType handle)
{
int handleNumber = ExtractInteger(handle, "i.open");
return environment.GetService<AipcService>().Open(handleNumber);
}
示例6: Destroy
public static AType Destroy(Aplus environment, AType handle)
{
int handleNumber = ExtractInteger(handle, "i.destroy");
return environment.GetService<AipcService>().Destroy(handleNumber);
}
示例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);
}
示例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);
}
示例9: WhatIs
public static AType WhatIs(Aplus environment, AType handle)
{
int handleNumber = ExtractInteger(handle, "i.whatis");
return environment.GetService<AipcService>().WhatIs(handleNumber);
}
示例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);
}
示例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);
}
示例12: Attributes
public static AType Attributes(Aplus environment, AType handle)
{
int handleNumber = ExtractInteger(handle, "i.attrs");
return environment.GetService<AipcService>().Attributes(handleNumber);
}
示例13: Timeout
public static AType Timeout(Aplus environment, AType argument)
{
return environment.GetService<AipcService>().GetTimeout(argument);
}
示例14: ConnectN
public static AType ConnectN(Aplus environment, AType name, AType function)
{
return environment.GetService<AipcService>().Connect(function, name);
}