public void Dispose() { bool flag = this.m_Ptr != IntPtr.Zero; if (flag) { HostTopologyInternal.InternalDestroy(this.m_Ptr); this.m_Ptr = IntPtr.Zero; } }
protected virtual void Dispose(bool disposing) { bool flag = this.m_Ptr != IntPtr.Zero; if (flag) { HostTopologyInternal.InternalDestroy(this.m_Ptr); this.m_Ptr = IntPtr.Zero; } }
public HostTopologyInternal(HostTopology topology) { ConnectionConfigInternal config = new ConnectionConfigInternal(topology.DefaultConfig); this.m_Ptr = HostTopologyInternal.InternalCreate(config, topology.MaxDefaultConnections); for (int i = 1; i <= topology.SpecialConnectionConfigsCount; i++) { ConnectionConfig specialConnectionConfig = topology.GetSpecialConnectionConfig(i); ConnectionConfigInternal config2 = new ConnectionConfigInternal(specialConnectionConfig); this.AddSpecialConnectionConfig(config2); } this.ReceivedMessagePoolSize = topology.ReceivedMessagePoolSize; this.SentMessagePoolSize = topology.SentMessagePoolSize; this.MessagePoolSizeGrowthFactor = topology.MessagePoolSizeGrowthFactor; }
private static extern int AddWsHostWrapperWithoutIp(HostTopologyInternal topologyInt, int port);
private static extern int AddWsHostWrapper(HostTopologyInternal topologyInt, string ip, int port);
private static extern int AddHostWrapperWithoutIp(HostTopologyInternal topologyInt, int port, int minTimeout, int maxTimeout);
private static extern int AddHostWrapper(HostTopologyInternal topologyInt, string ip, int port, int minTimeout, int maxTimeout);
extern private static int AddWsHostInternal(HostTopologyInternal topologyInt, string ip, int port);
extern private static int AddHostInternal(HostTopologyInternal topologyInt, string ip, int port, int minTimeout, int maxTimeout);
private static int AddHostWrapperWithoutIp(HostTopologyInternal topologyInt, int port, int minTimeout, int maxTimeout) { throw new NotImplementedException("なにこれ"); }
private static int AddWsHostWrapper(HostTopologyInternal topologyInt, string ip, int port) { throw new NotImplementedException("なにこれ"); }