示例#1
0
        private void __ctor()
        {
            if (string.IsNullOrWhiteSpace(Name))
            {
                throw new GlueException(StringConsts.CONFIGURATION_ENTITY_NAME_ERROR + this.GetType().FullName);
            }
            Glue.RegisterBinding(this);

            for (var i = 0; i < m_ClientTransportAllocatorLocks.Length; i++)
            {
                m_ClientTransportAllocatorLocks[i] = new object();
            }
        }
示例#2
0
        protected Binding(IGlueImplementation glue, string name = null, Provider provider = null)
            : base(glue, name)
        {
            m_Provider = provider;
            if (string.IsNullOrWhiteSpace(Name))
            {
                throw new GlueException(StringConsts.CONFIGURATION_ENTITY_NAME_ERROR + this.GetType().FullName);
            }
            Glue.RegisterBinding(this);

            for (var i = 0; i < m_ClientTransportAllocatorLocks.Length; i++)
            {
                m_ClientTransportAllocatorLocks[i] = new object();
            }
        }