Ejemplo n.º 1
0
 protected override void Destructor()
 {
     lock (s_Lock)
     {
         base.Destructor();
         s_Instance = null;
     }
 }
Ejemplo n.º 2
0
 private TrendingManager()
 {
     lock (s_Lock)
     {
         if (s_Instance != null)
         {
             throw new SocialException(StringConsts.TS_INSTANCE_ALREADY_ALLOCATED_ERROR.Args(GetType().Name));
         }
         s_Instance = this;
     }
 }