本文整理汇总了C#中ITransport.Init方法的典型用法代码示例。如果您正苦于以下问题:C# ITransport.Init方法的具体用法?C# ITransport.Init怎么用?C# ITransport.Init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITransport
的用法示例。
在下文中一共展示了ITransport.Init方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public void Init(ITransport transport, LaunchOptions options)
{
_lastCommandId = 1000;
_transport = transport;
FlushBreakStateData();
_transport.Init(this, options, Logger);
}
示例2: initTransport
private void initTransport(IKernel kernel, ITransport transport)
{
transport.Init(m_path);
}
示例3: Init
public void Init(ITransport transport, LaunchOptions options)
{
_lastCommandId = 1000;
_transport = transport;
FlushBreakStateData();
_transport.Init(this, options);
switch (options.TargetArchitecture)
{
case TargetArchitecture.ARM:
MaxInstructionSize = 4;
Is64BitArch = false;
break;
case TargetArchitecture.ARM64:
MaxInstructionSize = 8;
Is64BitArch = true;
break;
case TargetArchitecture.X86:
MaxInstructionSize = 20;
Is64BitArch = false;
break;
case TargetArchitecture.X64:
MaxInstructionSize = 26;
Is64BitArch = true;
break;
case TargetArchitecture.Mips:
MaxInstructionSize = 4;
Is64BitArch = false;
break;
default:
throw new ArgumentOutOfRangeException("options.TargetArchitecture");
}
}
示例4: Init
public void Init(ITransport transport, LaunchOptions options, HostWaitLoop waitLoop = null)
{
_lastCommandId = 1000;
_transport = transport;
FlushBreakStateData();
_transport.Init(this, options, Logger, waitLoop);
}