コード例 #1
0
 protected override void Destructor()
 {
     lock (s_Lock)
     {
         base.Destructor();
         deleteVolumes();
         s_Instance = null;
     }
 }
コード例 #2
0
        public TrendingSystemService(object director) : base(director)
        {
            lock (s_Lock)
            {
                if (s_Instance != null)
                {
                    throw new WebMessagingException(StringConsts.TS_INSTANCE_ALREADY_ALLOCATED_ERROR.Args(GetType().Name));
                }

                m_Volumes = new Registry <Volume>();

                s_Instance = this;
            }
        }
コード例 #3
0
ファイル: TrendingSystemHost.cs プロジェクト: saleyn/agni
 protected TrendingSystemHost(TrendingSystemService director, IConfigSectionNode config) : base(director)
 {
     ConfigAttribute.Apply(this, config);
 }