Beispiel #1
0
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new BitmapLockProxy((IBitmapLock)objectRef, proxyOptions);
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new TessellationSinkProxy((ITessellationSink)objectRef, proxyOptions);
Beispiel #3
0
 public TextLayoutProxy(ITextLayout objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
Beispiel #4
0
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new TypographyProxy((ITypography)objectRef, proxyOptions);
 public MetadataQueryReaderProxy(IMetadataQueryReader objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new ObjectRefEnumerableProxy((IObjectRefEnumerable)objectRef, proxyOptions);
Beispiel #7
0
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new AnimationManagerProxy((IAnimationManager)objectRef, proxyOptions);
 public StringEnumerableProxy(IStringEnumerable objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
Beispiel #9
0
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new Device1Proxy((IDevice1)objectRef, proxyOptions);
Beispiel #10
0
 public SynchronizationContextProxy(ISynchronizationContext objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
 public DrawingStateBlockProxy(IDrawingStateBlock objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
Beispiel #12
0
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new DrawingStateBlockProxy((IDrawingStateBlock)objectRef, proxyOptions);
Beispiel #13
0
 public SolidColorBrushProxy(ISolidColorBrush objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
Beispiel #14
0
 public FontListProxy(IFontList objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
 public PixelFormatInfoProxy(IPixelFormatInfo objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
Beispiel #16
0
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new GeometryProxy((IGeometry)objectRef, proxyOptions);
Beispiel #17
0
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new LayerProxy((ILayer)objectRef, proxyOptions);
Beispiel #18
0
 public static ObjectRefProxy Create(Type interfaceType, IObjectRef objectRef, ObjectRefProxyOptions proxyOptions)
 {
     Validate.Begin().IsNotNull<Type>(interfaceType, "interfaceType").IsNotNull<IObjectRef>(objectRef, "objectRef").Check();
     if (interfaceType.ContainsGenericParameters)
     {
         ExceptionUtil.ThrowArgumentException($"Only closed generic interface types are allowed (interfaceType = '{interfaceType.FullName}')");
     }
     if (interfaceType == typeof(IObjectRef))
     {
         return new ObjectRefProxy(objectRef, proxyOptions);
     }
     ObjectRefProxyFactory orAdd = null;
     if (!staticInterfaceTypeToProxyFactoryMap.TryGetValue(interfaceType, out orAdd) && !dynamicInterfaceTypeToProxyFactoryMap.TryGetValue(interfaceType, out orAdd))
     {
         orAdd = dynamicInterfaceTypeToProxyFactoryMap.GetOrAdd(interfaceType, createProxyFactory);
         if (orAdd.IsNullReference<ObjectRefProxyFactory>())
         {
             ExceptionUtil.ThrowInvalidOperationException($"There is no proxy registered for '{interfaceType.FullName}'");
         }
     }
     return orAdd.CreateProxy(objectRef, proxyOptions);
 }
Beispiel #19
0
 public TransformedGeometryProxy(ITransformedGeometry objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
 public ImagingFactoryProxy(IImagingFactory objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new DxgiResourceProxy((IDxgiResource)objectRef, proxyOptions);
Beispiel #22
0
 public DxgiObjectProxy(IDxgiObject objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
Beispiel #23
0
 public BitmapProxy(IBitmap objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
Beispiel #24
0
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new PathGeometry1Proxy((IPathGeometry1)objectRef, proxyOptions);
Beispiel #25
0
 public DxgiDeviceProxy(IDxgiDevice objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new AnimationVariableProxy((IAnimationVariable)objectRef, proxyOptions);
Beispiel #27
0
 public PropertyBag2Proxy(IPropertyBag2 objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
 public Direct2DFactoryProxy(IDirect2DFactory objectRef, ObjectRefProxyOptions proxyOptions) : base(objectRef, proxyOptions)
 {
 }
Beispiel #29
0
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new Direct2DFactory1Proxy((IDirect2DFactory1)objectRef, proxyOptions);
 public override ObjectRefProxy CreateProxy(IObjectRef objectRef, ObjectRefProxyOptions proxyOptions) =>
 new DirectWriteObjectProxy((IDirectWriteObject)objectRef, proxyOptions);