}
private StringSelector InternalThumbImageURLSelector
{
- get => thumbImage?.ResourceUrlSelector == null ? null : new StringSelector(thumbImage.ResourceUrlSelector);
+ get
+ {
+ Selector<string> resourceUrlSelector = thumbImage?.ResourceUrlSelector;
+ if(resourceUrlSelector != null)
+ {
+ return new StringSelector(resourceUrlSelector);
+ }
+ return null;
+ }
set
{
if (value == null || thumbImage == null)
}
private StringSelector InternalSwitchBackgroundImageURLSelector
{
- get => Icon?.ResourceUrlSelector == null ? null : new StringSelector(Icon.ResourceUrlSelector);
+ get
+ {
+ Selector<string> resourceUrlSelector = Icon?.ResourceUrlSelector;
+ if(resourceUrlSelector != null)
+ {
+ return new StringSelector(resourceUrlSelector);
+ }
+ return null;
+ }
set
{
Debug.Assert(Icon != null);
}
private StringSelector InternalSwitchHandlerImageURLSelector
{
- get => new StringSelector(thumb.ResourceUrlSelector);
+ get
+ {
+ Selector<string> resourceUrlSelector = thumb?.ResourceUrlSelector;
+ if (resourceUrlSelector != null)
+ {
+ return new StringSelector(resourceUrlSelector);
+ }
+ return null;
+ }
set
{
Debug.Assert(thumb != null);
}
Interop.FrameBroker.ErrorCode err;
- err = Interop.FrameBroker.SendLaunchRequest(handle, appControl.SafeAppControlHandle, resultCallbackMaps[requestId], null, (IntPtr)requestId);
-
+ lock (resultCallbackMaps)
+ {
+ err = Interop.FrameBroker.SendLaunchRequest(handle, appControl.SafeAppControlHandle, resultCallbackMaps[requestId], null, (IntPtr)requestId);
+ }
if (err != Interop.FrameBroker.ErrorCode.None)
{
throw FrameBrokerBaseErrorFactory.GetException(err, "Failed to send launch request");