Skip to content

Commit

Permalink
Unused decorater removed
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanOssendorf committed Dec 30, 2024
1 parent 55273db commit db05e6b
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions Source/Csla.test/DataPortal/DataPortalTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,37 +371,6 @@ private void DeleteSingle(int id)

}

public class UserLoggingContextManagerDecorator : IContextManager
{
private readonly IContextManager _decorated;
public IPrincipal LastSetPrincipal
{
get; private set;
}

public UserLoggingContextManagerDecorator(IContextManager contextManager)
{
_decorated = contextManager;
}

public bool IsStatefulContext => _decorated.IsStatefulContext;

public bool IsValid => _decorated.IsValid;

public ApplicationContext ApplicationContext { get => _decorated.ApplicationContext; set => _decorated.ApplicationContext = value; }

public IContextDictionary GetClientContext(ApplicationContext.ExecutionLocations executionLocation) => _decorated.GetClientContext(executionLocation);
public IContextDictionary GetLocalContext() => _decorated.GetLocalContext();
public IPrincipal GetUser() => _decorated.GetUser();
public void SetClientContext(IContextDictionary clientContext, ApplicationContext.ExecutionLocations executionLocation) => _decorated.SetClientContext(clientContext, executionLocation);
public void SetLocalContext(IContextDictionary localContext) => _decorated.SetLocalContext(localContext);
public void SetUser(IPrincipal principal)
{
LastSetPrincipal = principal;
_decorated.SetUser(principal);
}
}

[Serializable]
public class EncapsulatedBusy : BusinessBase<EncapsulatedBusy>
{
Expand Down

0 comments on commit db05e6b

Please sign in to comment.