FluorineFx.NET

Configuration file

Configuration file

 The "fluorinefx" section group is not mandatory in the web-config file

 The "FluorineGateway" http module entry is mandatory in the web-config file

 Set the security tag ONLY if service configuration file(services-config.xml) is not used (typically Flash remoting)

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="fluorinefx">
      <section name="settings" type="FluorineFx.Configuration.XmlConfigurator, FluorineFx" requirePermission="false" />
    </sectionGroup>
  </configSections>

  <fluorinefx>
    <settings>
      <!--  Reflection optimizer provider="codedom|il" debug="true|false" -->
      <optimizer provider="codedom" debug="true"/>
      <wsdlGenerateProxyClasses>true</wsdlGenerateProxyClasses>
      <wsdlProxyNamespace>FluorineFx.Proxy</wsdlProxyNamespace>
      <!--  Time Zone Compensation ="none|auto" -->
      <timezoneCompensation>none</timezoneCompensation>
      <!--  Any value-type that is not explicitly initialized with a value will contain the default value for that object type -->
      <acceptNullValueTypes>false</acceptNullValueTypes>
      <!-- value="browse|access" -->
      <remotingServiceAttribute>access</remotingServiceAttribute>
      <classMappings>
        <classMapping>
          <type>SampleClassNet</type>
          <customClass>SampleClassAS</customClass>
        </classMapping>
      </classMappings>
      <services>
        <service>
          <name>ServiceName</name>
          <service-location>.NET Full type name</service-location>
          <methods>
            <remote-method>
              <name>MethodName</name>
              <method>.NET Method name</method>
            </remote-method>
          </methods>
        </service>
      </services>
      <!--  Set the security tag ONLY if service configuration file (services-config.xml) is not used -->
      <security>
        <login-command class="FluorineFx.Messaging.Security.GenericLoginCommand" server="asp.net"/>
      </security>
      <cache>
        <cachedService timeout="30" slidingExpiration="false" type=".NET Full type name"/>
      </cache>
      <importNamespaces>
        <add namespace="Namespace name to import" assembly=""/>
      </importNamespaces>
      <nullable>
        <type name="System.Int32" value="MinValue"/>
        <type name="System.Double" value="MinValue"/>
        <type name="System.DateTime" value="MinValue"/>
        <type name="System.Guid" value="Empty"/>
      </nullable>
      <!-- preferredAlgorithm="deflate|gzip" compressionLevel="high|normal|low" handleRequest="all|amf|none" -->
      <httpCompress preferredAlgorithm="gzip" compressionLevel="high" handleRequest="all">
        <!-- compress responses larger then threshold bytes-->
        <threshold>10240</threshold>
        <excludedMimeTypes>
           <add type="image/jpeg"/>
           <add type="image/png"/>
           <add type="image/gif" />
           <add type="application/zip" />
           <add type="application/x-zip-compressed" />
           <add type="application/x-gzip-compressed" />
           <add type="application/x-compressed" />
           <add type="application/octet-stream" />
           <add type="application/pdf" />
        </excludedMimeTypes>
        <excludedPaths>
           <!--Fluorine service browser scripts and resources -->
           <add path="FluorineWebResource.axd"/>
           <add path="FluorineCodeGenerator.aspx"/>
           <!--standard .NET validating scripts and postback script -->
           <add path="WebResource.axd"/>
           <!--MS AJAX and has it's own compression module that will take care of the AJAX scripts -->
           <add path="ScriptResource.axd"/>
        </excludedPaths>
      </httpCompress>
      <fluorineContextFactory type="FluorineFx.Context.FluorineRtmpContextFactory"/>
      <rtmpServer>
        <threadpool minWorkerThreads="0" maxWorkerThreads="25" idleTimeout="60000"/>
      </rtmpServer>
    </settings>
  </fluorinefx>

  ...
  <system.web>
    <httpModules>
      <add name="FluorineGateway" type="FluorineFx.FluorineGateway, FluorineFx" />
    </httpModules>
  </system.web>
  ...
</configuration>