public IOrganizationService GetOrganisationService(IXrmConfiguration xrmConfiguration) { if (!xrmConfiguration.UseXrmToolingConnector) { return(XrmConnection.GetOrgServiceProxy(xrmConfiguration)); } else { throw new NotSupportedException("Tooling Conenction Not Supported In This Project"); } }
/// <summary> /// Return Organisation Service Proxy /// </summary> /// <returns></returns> public static OrganizationServiceProxy GetOrgServiceProxy(IXrmConfiguration crmConfig) { var connection = new XrmConnection(crmConfig); return(connection.GetOrgServiceProxy()); }