@@ -101,19 +101,19 @@ public virtual void SetUser(IPrincipal principal)
101
101
/// <summary>
102
102
/// Gets the local context.
103
103
/// </summary>
104
- public ContextDictionary GetLocalContext ( )
104
+ public IContextDictionary GetLocalContext ( )
105
105
{
106
- ContextDictionary localContext ;
106
+ IContextDictionary localContext ;
107
107
var sessionManager = ApplicationContext . GetRequiredService < ISessionManager > ( ) ;
108
108
var session = sessionManager . GetCachedSession ( ) ;
109
109
session . TryGetValue ( "localContext" , out var result ) ;
110
- if ( result is ContextDictionary context )
110
+ if ( result is IContextDictionary context )
111
111
{
112
112
localContext = context ;
113
113
}
114
114
else
115
115
{
116
- localContext = [ ] ;
116
+ localContext = new ContextDictionary ( ) ;
117
117
SetLocalContext ( localContext ) ;
118
118
}
119
119
return localContext ;
@@ -123,7 +123,7 @@ public ContextDictionary GetLocalContext()
123
123
/// Sets the local context.
124
124
/// </summary>
125
125
/// <param name="localContext">Local context.</param>
126
- public void SetLocalContext ( ContextDictionary localContext )
126
+ public void SetLocalContext ( IContextDictionary localContext )
127
127
{
128
128
var sessionManager = ApplicationContext . GetRequiredService < ISessionManager > ( ) ;
129
129
var session = sessionManager . GetCachedSession ( ) ;
@@ -134,19 +134,19 @@ public void SetLocalContext(ContextDictionary localContext)
134
134
/// Gets the client context.
135
135
/// </summary>
136
136
/// <param name="executionLocation"></param>
137
- public ContextDictionary GetClientContext ( ApplicationContext . ExecutionLocations executionLocation )
137
+ public IContextDictionary GetClientContext ( ApplicationContext . ExecutionLocations executionLocation )
138
138
{
139
- ContextDictionary clientContext ;
139
+ IContextDictionary clientContext ;
140
140
var sessionManager = ApplicationContext . GetRequiredService < ISessionManager > ( ) ;
141
141
var session = sessionManager . GetCachedSession ( ) ;
142
142
session . TryGetValue ( "clientContext" , out var result ) ;
143
- if ( result is ContextDictionary context )
143
+ if ( result is IContextDictionary context )
144
144
{
145
145
clientContext = context ;
146
146
}
147
147
else
148
148
{
149
- clientContext = [ ] ;
149
+ clientContext = new ContextDictionary ( ) ;
150
150
SetClientContext ( clientContext , ApplicationContext . ExecutionLocation ) ;
151
151
}
152
152
return clientContext ;
@@ -157,7 +157,7 @@ public ContextDictionary GetClientContext(ApplicationContext.ExecutionLocations
157
157
/// </summary>
158
158
/// <param name="clientContext">Client context.</param>
159
159
/// <param name="executionLocation"></param>
160
- public void SetClientContext ( ContextDictionary clientContext , ApplicationContext . ExecutionLocations executionLocation )
160
+ public void SetClientContext ( IContextDictionary clientContext , ApplicationContext . ExecutionLocations executionLocation )
161
161
{
162
162
var sessionManager = ApplicationContext . GetRequiredService < ISessionManager > ( ) ;
163
163
var session = sessionManager . GetCachedSession ( ) ;
0 commit comments