Exemple #1
0
        public void Dispose()
        {
            bool flag = this.m_Ptr != IntPtr.Zero;

            if (flag)
            {
                HostTopologyInternal.InternalDestroy(this.m_Ptr);
                this.m_Ptr = IntPtr.Zero;
            }
        }
Exemple #2
0
        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;
            }
        }
Exemple #3
0
        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 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);
Exemple #14
0
 private static int AddHostWrapperWithoutIp(HostTopologyInternal topologyInt, int port, int minTimeout, int maxTimeout)
 {
     throw new NotImplementedException("なにこれ");
 }
Exemple #15
0
 private static int AddWsHostWrapper(HostTopologyInternal topologyInt, string ip, int port)
 {
     throw new NotImplementedException("なにこれ");
 }