2021-07-11 22:59:29 -05:00
|
|
|
// Decompiled with JetBrains decompiler
|
|
|
|
|
// Type: Microsoft.Iris.Render.IrisEngineInfo
|
|
|
|
|
// Assembly: UIX.RenderApi, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
|
|
|
|
// MVID: D47658B8-A8EA-43D6-8837-ECE823BFFFC1
|
|
|
|
|
// Assembly location: C:\Program Files\Zune\UIX.RenderApi.dll
|
|
|
|
|
|
|
|
|
|
using Microsoft.Iris.Render.Protocol;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.Iris.Render
|
|
|
|
|
{
|
2021-07-11 23:04:40 -05:00
|
|
|
public sealed class IrisEngineInfo : EngineInfo
|
2021-07-11 22:59:29 -05:00
|
|
|
{
|
2021-07-11 23:04:40 -05:00
|
|
|
private ConnectionInfo m_connectionInfo;
|
2021-07-11 22:59:29 -05:00
|
|
|
|
2021-07-11 23:04:40 -05:00
|
|
|
public static EngineInfo CreateLocal() => (EngineInfo)new IrisEngineInfo(true);
|
2021-07-11 22:59:29 -05:00
|
|
|
|
2021-07-11 23:04:40 -05:00
|
|
|
public static EngineInfo CreateRemote() => (EngineInfo)new IrisEngineInfo(true, TransportProtocol.TCP, "127.0.0.1", false);
|
|
|
|
|
|
|
|
|
|
internal IrisEngineInfo(bool isPrimary)
|
|
|
|
|
: base(EngineType.Iris)
|
|
|
|
|
{
|
|
|
|
|
if (!isPrimary)
|
|
|
|
|
throw new NotImplementedException("Local connections to an existing engine are not supported yet");
|
|
|
|
|
this.m_connectionInfo = (ConnectionInfo)new LocalConnectionInfo();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal IrisEngineInfo(
|
|
|
|
|
bool isPrimary,
|
|
|
|
|
TransportProtocol protocol,
|
|
|
|
|
string sessionName,
|
|
|
|
|
bool swapByteOrder)
|
|
|
|
|
: base(EngineType.Iris)
|
|
|
|
|
{
|
|
|
|
|
if (!isPrimary)
|
|
|
|
|
throw new NotImplementedException("Local connections to an existing engine are not supported yet");
|
|
|
|
|
this.m_connectionInfo = (ConnectionInfo)new RemoteConnectionInfo(protocol, sessionName, swapByteOrder);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal ConnectionInfo ConnectionInfo => this.m_connectionInfo;
|
|
|
|
|
}
|
2021-07-11 22:59:29 -05:00
|
|
|
}
|