Expires: Fri, 19 Jun 2026 16:35:19 GMT Tango - Twine softwares
aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Stubs Collection/stubs/rightdancercontrol.cs
stat options
Period:
Authors:

Commits per author per week (path 'Software/Stubs Collection/stubs/rightdancercontrol.cs')

AuthorW22 2026W23 2026W24 2026W25 2026Total
Total00000
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using Tango.Settings;

namespace Tango.MachineStudio.Common.Update
{
    public static class UpdateServiceHelper
    {
        public static ChannelFactory<IMachineStudioUpdateService> GetUpdateServiceChannel()
        {
            BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.None);
            binding.ReceiveTimeout = TimeSpan.FromSeconds(20);
            binding.SendTimeout = TimeSpan.FromSeconds(20);
            binding.MaxBufferPoolSize = 6553600;
            binding.MaxBufferSize = 6553600;
            binding.MaxReceivedMessageSize = 6553600;
            binding.ReaderQuotas.MaxDepth = 6553600;
            binding.ReaderQuotas.MaxStringContentLength = 6553600;
            binding.ReaderQuotas.MaxArrayLength = 6553600;
            binding.ReaderQuotas.MaxBytesPerRead = 6553600;

            return new ChannelFactory<IMachineStudioUpdateService>(binding, SettingsManager.Default.GetOrCreate<MachineStudioSettings>().UpdateServiceAddress);
        }
    }
}