Summary description for UnreferencedObjectEventArgs.
Наследование: System.EventArgs
Пример #1
0
 internal virtual void OnUnreferencedObject(UnreferencedObjectEventArgs e)
 {
     if (onUnreferencedObject != null)
     {
         onUnreferencedObject(this, e);
     }
 }
 private void OnUnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     if (Thread.CurrentThread.GetHashCode() == this.currentThread)
     {
         object unreferencedObject = e.UnreferencedObject;
         if ((unreferencedObject != null) && typeof(SoapHeader).IsAssignableFrom(unreferencedObject.GetType()))
         {
             this.unreferencedHeaders.Add((SoapHeader) unreferencedObject);
         }
     }
 }
Пример #3
0
 private static void XmlParseErrorOnUnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     throw new XmlException("Unrefferenced id " + e.UnreferencedId);
 }
Пример #4
0
 /// <summary>
 /// Handles the UnreferencedObject event of the serializer control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.Xml.Serialization.UnreferencedObjectEventArgs"/> instance containing the event data.</param>
 private void serializer_UnreferencedObject( object sender, UnreferencedObjectEventArgs e )
 {
     _errorText += String.Format( "unreferenced object '{0}' type='{1}'",
         e.UnreferencedId,
         e.UnreferencedObject.GetType().Name );
 }
Пример #5
0
 private static void xs_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
 }
Пример #6
0
 void OnUnreferencedObject(object sender, UnreferencedObjectEventArgs e) {
     if (Thread.CurrentThread.GetHashCode() != this.currentThread) return;
     object o = e.UnreferencedObject;
     if (o == null) return;
     if (typeof(SoapHeader).IsAssignableFrom(o.GetType())) {
         unreferencedHeaders.Add((SoapHeader)o);
     }
 }
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// unreferencedobjecteventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this UnreferencedObjectEventHandler unreferencedobjecteventhandler, Object sender, UnreferencedObjectEventArgs e, AsyncCallback callback)
        {
            if(unreferencedobjecteventhandler == null) throw new ArgumentNullException("unreferencedobjecteventhandler");

            return unreferencedobjecteventhandler.BeginInvoke(sender, e, callback, null);
        }
 void OnUnreferenced(object obj, UnreferencedObjectEventArgs args)
 {
     // This hasn't happened for me
     Console.WriteLine("OnUnreferenced: " + args.UnreferencedObject.ToString());
 }
Пример #9
0
 private static void Serializer_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     Handle_Unknown_SDMX_Event(null, null,e);
 }
 private static void UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     Debug.Log("unreferenced object " + sender.ToString() + " " + e.ToString());
 }
Пример #11
0
        private static void Handle_Unknown_SDMX_Event(XmlElementEventArgs eElementEventArgs,XmlAttributeEventArgs eAttributeEventArgs,UnreferencedObjectEventArgs eObjectEventArgs)
        {
            Exception ex;
            if (eElementEventArgs != null)
            {
                ex = new Exception(Constants.InvalidElement+ eElementEventArgs.Element.Name);
            }
            else if (eAttributeEventArgs != null)
            {
                ex = new Exception(Constants.InvalidAttribute + eAttributeEventArgs.Attr.Name);
            }
            else if (eObjectEventArgs != null)
            {
                ex = new Exception(Constants.LoadingException);
            }
            else
            {
                ex = new Exception(Constants.LoadingException);
            }

            throw ex;
        }
Пример #12
0
 private static void serializer_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     Console.WriteLine("Unreferenced Object in XML deserialization");
 }
Пример #13
0
 void schemaSerializer_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     this.loadError.Add("Unreferenced object: " + e.UnreferencedId);
 }
Пример #14
0
		internal virtual void OnUnreferencedObject (UnreferencedObjectEventArgs e) 
		{
			if (onUnreferencedObject != null) onUnreferencedObject(this, e);
		}
Пример #15
0
 public void unreferencedObject(object sender, UnreferencedObjectEventArgs e)
 {
     String msg = String.Format("unreferencedObject: {0}  mit ID {1}", e.UnreferencedObject.ToString(),e.UnreferencedId);
     show(msg);
     Console.WriteLine(msg);
 }
 /// <include file='doc\XmlSerializationReader.uex' path='docs/doc[@for="XmlSerializationReader.UnreferencedObject"]/*' />
 protected void UnreferencedObject(string id, object o) {
     if (events.OnUnreferencedObject != null) {
         UnreferencedObjectEventArgs e = new UnreferencedObjectEventArgs(o, id);
         events.OnUnreferencedObject(events.sender, e);
     }
 }
        private static void Serializer_UnreferencedObject(object sender, UnreferencedObjectEventArgs e)
        {
            Console.WriteLine("_________________________________________");
            Console.WriteLine("DateTime: " + DateTime.Now.ToString());

            Console.WriteLine("Unknown Element");
            Console.WriteLine("\t" + e.UnreferencedId + " " + e.UnreferencedObject.ToString());
        }