private static void Dump(ByteBuffer buffer) {
#if !SILVERLIGHT
			if (FluorineConfiguration.Instance.FluorineSettings.Debug != null && FluorineContext.Current != null) {
				if (FluorineConfiguration.Instance.FluorineSettings.Debug.Mode != Debug.Off) {
					try {
						if (FluorineConfiguration.Instance.FluorineSettings.Debug.DumpPath != null) {
							string fileName = string.Format("dump_{0}_{1}.bin", DateTime.Now.ToString("yyyy-MM-dd_hh-mm-ss-fff"), buffer.Position);
							if (FluorineContext.Current != null && FluorineContext.Current.Connection != null)
								fileName = string.Format("dump_{0}_{1}_{2}.bin", FluorineContext.Current.Connection.ConnectionId, DateTime.Now.ToString("yyyy-MM-dd_hh-mm-ss-fff"), buffer.Position);
							//string fileName = "dump_" + Guid.NewGuid().ToString("N") + "_" + DateTime.Now.ToString("yyyy-MM-dd_hh-mm-ss-fff") + ".bin";
							IResource resource = FluorineContext.Current.GetResource(Path.Combine(FluorineConfiguration.Instance.FluorineSettings.Debug.DumpPath, fileName));
							buffer.Dump(resource.File.FullName);
						}
					} catch {
					}
				}
			}
#endif
		}