Пример #1
0
 internal static void DebugInstanceDeserialized(DObject /*!*/ instance, bool forPersistence)
 {
     instance.SetProperty(
         Guid.NewGuid().ToString(),
         String.Format(
             "Deserialized for {0} in process: {1}, app domain: {2}",
             forPersistence ? "persistence" : "remoting",
             Process.GetCurrentProcess().MainModule.FileName,
             AppDomain.CurrentDomain.FriendlyName),
         null);
 }
Пример #2
0
        public static void SetObjectProperty(DObject/*!*/ obj, string name, object value, DTypeDesc caller)
        {
            Debug.Assert(obj != null && name != null);

            if (ReferenceEquals(obj, ScriptContext.SetterChainSingletonObject))
            {
                ScriptContext context = ScriptContext.CurrentContext;

                if (value is PhpReference)
                {
                    context.AbortSetterChain(false);
                    return;
                }

                // extend and finish the setter chain
                context.ExtendSetterChain(new RuntimeChainProperty(name));
                context.FinishSetterChain(value);
                return;
            }

            obj.SetProperty(name, value, caller);
        }
Пример #3
0
		internal static void DebugInstanceDeserialized(DObject/*!*/ instance, bool forPersistence)
		{
			instance.SetProperty(
				Guid.NewGuid().ToString(),
				String.Format(
					"Deserialized for {0} in process: {1}, app domain: {2}",
					forPersistence ? "persistence" : "remoting",
					Process.GetCurrentProcess().MainModule.FileName,
					AppDomain.CurrentDomain.FriendlyName),
				null);
		}