public static IDictionary <string, object> getSetContainerProperties(SetContainerParams setContainer) { IDictionary <string, object> properties = new Dictionary <string, object>(); properties[CONTAINER_NAME] = setContainer.Name; return(properties); }
/// <summary> /// Set the name of the current Transaction. </summary> /// <param name="setContainer"> </param> /// <exception cref="ODataException"> </exception> /// <exception cref="GeneralSecurityException"> </exception> /// <exception cref="IOException"> </exception> /// <exception cref="URISyntaxException"> </exception> /// <exception cref="NeotysAPIException"> </exception> public void SetContainer(SetContainerParams setContainer) { if (!Enabled) { return; } IDictionary <string, object> properties = DesignApiUtils.getSetContainerProperties(setContainer); properties[DesignApiUtils.API_KEY] = apiKey; try { CreateEntity(DesignApiUtils.SET_CONTAINER, properties); } catch (ODataException oDataException) { throw new NeotysAPIException(oDataException); } }