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

                DisposableObject.DisposeAndNull(ref m_GraphHost);
                DisposableObject.DisposeAndNull(ref m_DataStore);

                s_Instance = null;
            }
        }
Ejemplo n.º 3
0
 protected GraphHost(GraphOperationContext director, IConfigSectionNode config) : base(director)
 {
     ConfigAttribute.Apply(this, config);
 }