private GraphOperationContext() { lock (s_Lock) { if (s_Instance != null) { throw new WebMessagingException(StringConsts.GS_INSTANCE_ALREADY_ALLOCATED_ERROR.Args(GetType().Name)); } s_Instance = this; } }
protected override void Destructor() { lock (s_Lock) { base.Destructor(); DisposableObject.DisposeAndNull(ref m_GraphHost); DisposableObject.DisposeAndNull(ref m_DataStore); s_Instance = null; } }
protected GraphHost(GraphOperationContext director, IConfigSectionNode config) : base(director) { ConfigAttribute.Apply(this, config); }