Example #1
0
        public void ServerToClient(IEnumerable <IWfMainStreamActivityDescriptor> server, WfClientMainStreamActivityDescriptorCollection client)
        {
            server.NullCheck("server");
            client.NullCheck("client");

            client.Clear();

            foreach (IWfMainStreamActivityDescriptor msActDesp in server)
            {
                WfClientMainStreamActivityDescriptor clientMSActDesp = null;

                WfClientMainStreamActivityDescriptorConverter.Instance.ServerToClient(msActDesp, ref clientMSActDesp);

                client.Add(clientMSActDesp);
            }
        }
        public void ServerToClient(IEnumerable<IWfMainStreamActivityDescriptor> server, WfClientMainStreamActivityDescriptorCollection client)
        {
            server.NullCheck("server");
            client.NullCheck("client");

            client.Clear();

            foreach (IWfMainStreamActivityDescriptor msActDesp in server)
            {
                WfClientMainStreamActivityDescriptor clientMSActDesp = null;

                WfClientMainStreamActivityDescriptorConverter.Instance.ServerToClient(msActDesp, ref clientMSActDesp);

                client.Add(clientMSActDesp);
            }
        }