Exemple #1
0
        private void TestProcessNodes(int nodeId)
        {
            imagelinks.ImageLinksClient imageLinksClient = new imagelinks.ImageLinksClient();
            imageLinksClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(imagelinksUri);

            imagelinks.OTAuthentication imagelinksAuthentication = new imagelinks.OTAuthentication();

            try
            {
                imagelinks.Size originalSize = new imagelinks.Size();
                originalSize.Height = 768;
                originalSize.Width  = 1024;

                imagelinks.Size thumbSize = new imagelinks.Size();
                thumbSize.Height = 120;
                thumbSize.Width  = 160;

                imagelinks.Size previewSize = new imagelinks.Size();
                previewSize.Height = 720;
                previewSize.Width  = 1280;

                imagelinks.Size splashSize = new imagelinks.Size();
                splashSize.Height = 480;
                splashSize.Width  = 640;

                imagelinks.ProcessNodesParams testImagelinksParams = new imagelinks.ProcessNodesParams();
                testImagelinksParams.OriginalNodeId = nodeId;
                testImagelinksParams.OriginalSize   = originalSize;
                testImagelinksParams.PreviewSize    = previewSize;
                testImagelinksParams.SplashSize     = null;
                testImagelinksParams.ThumbSize      = thumbSize;

                imagelinksAuthentication.AuthenticationToken = contentServerToken;
                imagelinks.ProcessNodesResult testProcessNodesResult = imageLinksClient.ProcessNodes(ref imagelinksAuthentication, testImagelinksParams);
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
            finally
            {
            }
        }
Exemple #2
0
        private void TestProcessNodes(int nodeId)
        {
            imagelinks.ImageLinksClient imageLinksClient = new imagelinks.ImageLinksClient();
            imageLinksClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(imagelinksUri);

            imagelinks.OTAuthentication imagelinksAuthentication = new imagelinks.OTAuthentication();

            try
            {
                imagelinks.Size originalSize = new imagelinks.Size();
                originalSize.Height = 768;
                originalSize.Width = 1024;

                imagelinks.Size thumbSize = new imagelinks.Size();
                thumbSize.Height = 120;
                thumbSize.Width = 160;

                imagelinks.Size previewSize = new imagelinks.Size();
                previewSize.Height = 720;
                previewSize.Width = 1280;

                imagelinks.Size splashSize = new imagelinks.Size();
                splashSize.Height = 480;
                splashSize.Width = 640;

                imagelinks.ProcessNodesParams testImagelinksParams = new imagelinks.ProcessNodesParams();
                testImagelinksParams.OriginalNodeId = nodeId;
                testImagelinksParams.OriginalSize = originalSize;
                testImagelinksParams.PreviewSize = previewSize;
                testImagelinksParams.SplashSize = null;
                testImagelinksParams.ThumbSize = thumbSize;

                imagelinksAuthentication.AuthenticationToken = contentServerToken;
                imagelinks.ProcessNodesResult testProcessNodesResult = imageLinksClient.ProcessNodes(ref imagelinksAuthentication, testImagelinksParams);
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message);
            }
            finally
            {

            }
        }