Example #1
0
            private RenderCommand TransformPackage(RenderCommand renderCommand)
            {
                if (renderCommand.Type != RenderCommandType.SendPackage)
                {
                    return(renderCommand);
                }
                var package        = (renderCommand as RenderCommand.SendPackage).dataPackage;
                var phoenixPackage = PhoenixPackageAdapter.Transform(package);

                return(new RenderCommand.SendPhoenixPackage(phoenixPackage));
            }
Example #2
0
            private EventParameters TransformEventParameters(EventParameters eventParameters)
            {
                if (!eventParameters.Has(EventParameterType.PhoenixPackage))
                {
                    return(eventParameters);
                }
                return(eventParameters.Transform((EventParameter eventParameter) => {
                    if (eventParameter.Type != EventParameterType.PhoenixPackage)
                    {
                        return eventParameter;
                    }
                    var package = PhoenixPackageAdapter.Transform((eventParameter as EventParameter.PhoenixPackage).Val);

                    return new EventParameter.Package(package);
                }));
            }