/
app.config
53 lines (53 loc) · 2.04 KB
/
app.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="roque" type="Cinchcast.Roque.Core.Configuration.Roque, Roque.Core"/>
<section name="castle" type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler,Castle.Windsor" />
</configSections>
<roque>
<queues>
<!-- define your work queues -->
<queue name="main" type="Cinchcast.Roque.Redis.RedisQueue, Roque.Redis">
<settings>
<!-- for RedisQueue available settings are host and port -->
<setting key="host" value="localhost"/>
</settings>
</queue>
<!-- default event queue (only necessary on the broadcaster side) -->
<queue name="_events" type="Cinchcast.Roque.Redis.RedisQueue, Roque.Redis">
<settings>
<setting key="host" value="localhost"/>
</settings>
</queue>
</queues>
<workers>
<!-- define your workers (on the consumer side) -->
<worker name="main" queue="main">
<!-- classes that subscribe to events (not necessary when consuming work queues) -->
<subscribers>
<subscriber type="Cinchcast.Roque.Common.PropertyChangeTracer, Roque.Common.Services"/>
</subscribers>
</worker>
</workers>
</roque>
<castle>
<!-- implementations for work queue services (not necessary when consuming events) -->
<components>
<component service="Cinchcast.Roque.Common.ITrace" type="Cinchcast.Roque.Common.Trace, Roque.Common.Services"/>
</components>
</castle>
<system.diagnostics>
<switches>
<add name="roque" value="Verbose"/>
</switches>
<trace autoflush="true">
<listeners>
<add name="logListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="roque.log"/>
<add name="consoleListener" type="System.Diagnostics.ConsoleTraceListener"/>
</listeners>
</trace>
</system.diagnostics>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>