protected override void Destructor() { lock (s_Lock) { base.Destructor(); s_Instance = null; } }
public GraphSystemService(object director) : base(director) { lock (s_Lock) { if (s_Instance != null) { throw new WebMessagingException(StringConsts.GS_INSTANCE_ALREADY_ALLOCATED_ERROR.Args(GetType().Name)); } s_Instance = this; } }
public GraphCommentFetchDefaultStrategy(GraphSystemService graphSystemService, IConfigSectionNode config) { m_GraphSystemService = graphSystemService; m_ConfigNode = config; ConfigAttribute.Apply(this, config); }