mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="WebConfigurationHostFileChange.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Web.Configuration {
|
|
using System.Collections;
|
|
using System.Configuration.Internal;
|
|
using System.Configuration;
|
|
using System.Globalization;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using System.Security;
|
|
using System.Web;
|
|
using System.Web.Compilation;
|
|
using System.Web.Configuration.Internal;
|
|
using System.Web.Hosting;
|
|
using System.Web.Util;
|
|
using System.Xml;
|
|
|
|
//
|
|
// Receives file change notifications from the FileChangesMonitor,
|
|
// and forwards them to a callback on a configuration host.
|
|
//
|
|
sealed class WebConfigurationHostFileChange {
|
|
StreamChangeCallback _callback;
|
|
|
|
internal WebConfigurationHostFileChange(StreamChangeCallback callback) {
|
|
_callback = callback;
|
|
}
|
|
|
|
internal void OnFileChanged(object sender, FileChangeEvent e) {
|
|
_callback(e.FileName);
|
|
}
|
|
|
|
internal StreamChangeCallback Callback {
|
|
get {return _callback;}
|
|
}
|
|
}
|
|
}
|