public OrganizationServiceExtentedProxy(OrganizationServiceProxy service, ConnectionData connectionData)
        {
            this._service       = service ?? throw new ArgumentNullException(nameof(service));
            this.ConnectionData = connectionData ?? throw new ArgumentNullException(nameof(connectionData));
            this.UrlGenerator   = new ConnectionDataUrlGenerator(this);

            this.CurrentServiceEndpoint = service.ServiceManagement?.CurrentServiceEndpoint?.Address?.Uri?.ToString();
        }
示例#2
0
        public OrganizationServiceExtentedProxy(OrganizationServiceProxy serviceProxy, ConnectionData connectionData, string currentServiceEndpoint)
        {
            this._serviceProxy  = serviceProxy ?? throw new ArgumentNullException(nameof(serviceProxy));
            this.ConnectionData = connectionData ?? throw new ArgumentNullException(nameof(connectionData));
            this.UrlGenerator   = new ConnectionDataUrlGenerator(this);

            this.CurrentServiceEndpoint = currentServiceEndpoint;

            this.ConnectionData.StoreServiceInUse(serviceProxy);
        }