Beispiel #1
0
        public static void SetTargetedInterface(long targetedId, IValueInterface <T> valueInterface)
        {
            if (!(Content is TargetedValueInterface <T>))
            {
                if (ContentLock == null)
                {
                    lock (MapersLock)
                    {
                        if (ContentLock == null)
                        {
                            ContentLock = new object();
                        }
                    }
                }

                lock (ContentLock)
                {
                    if (!(Content is TargetedValueInterface <T>))
                    {
                        SetInterface(new TargetedValueInterface <T>(Content));
                    }
                }
            }

            TargetedValueInterface.Set(targetedId, valueInterface);
        }
 public static void SetTargetedInterface(ITargetedBind targeted, IValueInterface <T> valueInterface)
 {
     TargetedValueInterface.Set(targeted, valueInterface);
 }
 public static void SetTargetedInterface(long targetedId, IValueInterface <T> valueInterface)
 {
     TargetedValueInterface.Set(targetedId, valueInterface);
 }