/// <summary> /// Initializes a new hosted SharePoint server proxy. /// </summary> /// <param name="serviceId">Hosted SharePoint service id.</param> /// <returns>Hosted SharePoint server proxy.</returns> private static HostedSharePointServer GetHostedSharePointServer(int serviceId) { HostedSharePointServer sps = new HostedSharePointServer(); ServiceProviderProxy.Init(sps, serviceId); return sps; }