예제 #1
0
파일: DryIocMvc.cs 프로젝트: nodyang/DryIoc
 /// <inheritdoc />
 public void OnBeginRequest(object sender, EventArgs _)
 {
     DefaultScopeContext.SetCurrent(scope =>
                                    scope ?? Scope.Of(Reuse.WebRequestScopeName));
 }
예제 #2
0
 /// <inheritdoc />
 public void OnBeginRequest(object sender, EventArgs _)
 {
     DefaultScopeContext.SetCurrent(scope =>
                                    scope ?? new Scope(parent: null, name: Reuse.WebRequestScopeName));
 }