示例#1
0
        /// <summary>
        /// Serialize content only <see cref="ActionInfo"/> to json string
        /// </summary>
        /// <returns>json string</returns>
        protected override void ToJsonRaw(JsonWriter writer)
        {
            writer.WriteProperty("ActionID", ActionID);
            writer.WriteProperty("AssemblyID", AssemblyID);
            writer.WriteProperty("ClassName", ClassName);
            writer.WriteProperty("Name", Name);
            writer.WriteProperty("LogOnError", LogOnError);
            writer.WriteProperty("EMailOnError", EMailOnError);
            writer.WriteProperty("EMailGroup", EMailGroup);
            writer.WriteProperty("TransactionSupport", TransactionSupport.ToString());
            writer.WriteProperty("WebAuthentication", WebAuthentication.ToString());
            writer.WriteProperty("AuthenticationRequired", AuthenticationRequired);
            writer.WriteProperty("AuthorizationRequired", AuthorizationRequired);
            writer.WriteProperty("AsyncMode", AsyncMode);
            writer.WriteProperty("IID", IID);
            writer.WriteProperty("InterfaceID", InterfaceID);
            writer.WriteProperty("InterfaceName", InterfaceName);
            writer.WriteProperty("Description", Description);
            writer.WriteProperty("MultipleRowsParams", MultipleRowsParams);
            writer.WriteProperty("MultipleRowsResult", MultipleRowsResult);
            writer.WriteProperty("IsStatic", IsStatic);

            writer.WritePropertyName("InterfaceParameters");
            writer.WriteStartArray();
            foreach (var item in InterfaceParameters)
            {
                item.Value.ToJson(writer);
            }
            writer.WriteEndArray();
        }