![]() Remember that you will manually register or refresh a Service Instance to call this method: K2 does not "poll" or otherwise automatically update the list of Service Objects in a Service Broker. This method is called when you register or refresh a Service Instance, and it is used to list the available Service Objects for a Service Broker. In a dynamic Service Broker, you will generate Service Objects dynamically in the DescribeSchema() method of the ServiceAssemblyBase base class. Override and Implement the DescribeSchema() method ![]() String configSettingValue = () Įxample: Implementing configuration settings:ĥ. When deploying your project you don’t need to copy this assembly to the K2 server, since it already exists on the K2 server.Īfter adding the reference, import the SourceCode namespaces that you will need to use in your project: This file is available on the K2 server and in a machine where the K2 design tools are installed. NET library .dll which is located by default in C:\Program Files (x86)\K2 blackpearl\Bin. (For a Dynamic Service Broker, the chances are good that you will need to reference an external assembly, so keep this dependency in mind when deploying.) 2.Ědd Reference to .dllĪdd a reference to the. If you are referencing a custom assembly, remember that you will need to copy the referenced assembly to the K2 server along with the Service Broker. If you have an existing class that you want to expose as a Service Broker, you can edit the code in your class and add the necessary implementation or alternatively reference your assembly in a new class project. NET class library (or edit existing class)Ĭustom Brokers are standard. Implementing Dynamic Service BrokersĪ Dynamic Service Broker is implemented very similarly to a Static Service broker, but with one key difference: instead of decorating the Classes, Properties and Methods that you want to add to your Service Broker, you will dynamically generate Service Objects and add Properties and Methods when the DescribeSchema() method is called. It is not supported by K2 product support and is not intended to be used as-is in production environments. The sample project is provided for demonstration purposes only. The zip file includes sample XML files that you can use to test this sample dynamic service broker with. You can download a sample Dynamic Service Broker for exposing XML Files Visual Studio project from here: .zip.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |