示例#1
0
 public CssModule(ILiveEditingContext context)
 {
     if (context == null)
         throw new ArgumentNullException("context");
     if (!context.Enabled)
         throw new ApplicationException("Live Editing is not enabled.");
     
     m_Context = context;
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="LiveEditingManager"/> class.
        /// </summary>
        /// <param name="context">The context.</param>
        public LiveEditingManager(ILiveEditingContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (!context.Enabled)
            {
                throw new ApplicationException("Live Editing is not enabled.");
            }

            m_Context = context;
        }