public void Insert <T>(SsdsEntity <T> entity) where T : class { SsdsEntitySerializer <T> serializer = new SsdsEntitySerializer <T>(); string payload = serializer.Serialize(entity); SsdsRestFacade facade = this.CreateFacade(); facade.Insert(payload); }
/// <summary> /// Creates a container on the given authority. /// </summary> /// <param name="name">The containers name.</param> /// <returns>The URI of the created container.</returns> public string CreateContainer(string name) { SsdsRestFacade facade = this.CreateFacade(); var container = new XElement(Constants.ns + "Container", new XElement(Constants.ns + "Id", name) ); return(facade.Insert(container.ToString())); }
/// <summary> /// Creates an authority with given name. /// </summary> /// <param name="name">The authority name.</param> /// <returns>The URI of the created authority.</returns> public string CreateAuthority(string name) { SsdsRestFacade facade = this.CreateFacade(true); var authority = new XElement(Constants.ns + "Authority", new XElement(Constants.ns + "Id", name) ); return(facade.Insert(authority.ToString())); }
public string Insert(SsdsBlobEntity blob) { SsdsRestFacade facade = this.CreateFacade(); return(facade.Insert(blob)); }