Example #1
0
        public static CreateContextFromSectionHandler SetSectionHandler(CreateContextFromSectionHandler sectionHandler)
        {
            CreateContextFromSectionHandler prevInstance = s_callback;

            s_callback = sectionHandler;
            return(prevInstance);
        }
 public static CreateContextFromSectionHandler SetSectionHandler(CreateContextFromSectionHandler sectionHandler)
 {
     CreateContextFromSectionHandler prevInstance = s_callback;
     s_callback = sectionHandler;
     return prevInstance;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"></see> class.
 /// </summary>
 public Guard(CreateContextFromSectionHandler sectionHandler)
 {
     NUnit.Framework.Assert.IsNotNull(sectionHandler);
     _prevInst = SetSectionHandler(sectionHandler);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:System.Object"></see> class.
 /// </summary>
 public Guard(CreateContextFromSectionHandler sectionHandler)
 {
 	  NUnit.Framework.Assert.IsNotNull(sectionHandler);
     _prevInst = SetSectionHandler(sectionHandler);
 }