Beispiel #1
0
        public override void UpdateConnection(IOrganizationService newService, ConnectionDetail detail, string actionName, object parameter)
        {
            ConnectionDetail = detail;
            if (actionName == "AdditionalOrganization")
            {
                AdditionalConnectionDetails.Add(detail);

                if (newService is OrganizationServiceProxy proxy)
                {
                    proxy.Timeout = detail.Timeout;
                }
                else if (newService is OrganizationWebProxyClient client)
                {
                    client.InnerChannel.OperationTimeout = detail.Timeout;
                }

                mForm.DisplayTargetOrganizations(AdditionalConnectionDetails.ToList());
            }
            else
            {
                sourceDetail  = detail;
                sourceService = newService;
                RetrieveSolutions();

                mForm.SetSourceOrganization(detail);
            }
        }
Beispiel #2
0
 protected override void ConnectionDetailsUpdated(NotifyCollectionChangedEventArgs e)
 {
     mForm.DisplayTargetOrganizations(AdditionalConnectionDetails.ToList());
 }