Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Instantiate a new ProjectResource class with the new id, your module id, resource type id, and other data. For example:

Code Block
ProjectResource resource = new ProjectResource(newId, moduleId, resourceType, resourceName, ApplicationScope.GATEWAY, resourceData);


Remember that project resources dictate a scope that indicates where they will be used. This is primarily to avoid sending resources that are only used in the gateway to the clients. The designer, of course, will have access to all resources. This example expects that you have all of the fields already defined in variables. The resource data is a byte array, and can be obtained by any method that you desire. Most commonly though, modules will simply use the serialization facilities provided by Igntion. For example, the following code could have easily proceeded the previous example: