public void Post(ISite site) { IEnumerable <SiteEndpoint> endpoints = site.GetRawEndpoints(); if (endpoints == null) { return; } WebTransfer.PostSiteEndpoint(endpoints); }
/// <summary> /// Get endpoints from Site /// </summary> /// <param name="site"></param> /// <returns></returns> public static IEnumerable <SiteEndpoint> GetEndpoints(this ISite site) { IEnumerable <SiteEndpoint> endpoints = site.GetRawEndpoints(); return(endpoints); }