Skip to content

Commit

Permalink
- simplified how interceptors are displayed in component view so that…
Browse files Browse the repository at this point in the history
… we only show the key / type
  • Loading branch information
kkozmic committed Jan 13, 2011
1 parent f37f346 commit 4a1ea16
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Castle.Windsor/Core/InterceptorReference.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2004-2010 Castle Project - http://www.castleproject.org/
// Copyright 2004-2011 Castle Project - http://www.castleproject.org/
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@
namespace Castle.Core
{
using System;
using System.Diagnostics;
using System.Linq;

using Castle.Core.Internal;
Expand All @@ -30,8 +31,13 @@ namespace Castle.Core
[Serializable]
public class InterceptorReference : IReference<IInterceptor>, IEquatable<InterceptorReference>
{
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private readonly string componentKey;

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private readonly DependencyModel dependencyModel;

[DebuggerBrowsable(DebuggerBrowsableState.Never)]
private readonly Type serviceType;

/// <summary>
Expand Down Expand Up @@ -85,7 +91,7 @@ public override string ToString()
{
return componentKey;
}
return serviceType.FullName ?? string.Empty;
return serviceType.Name ?? string.Empty;
}

public bool Equals(InterceptorReference other)
Expand Down

0 comments on commit 4a1ea16

Please sign in to comment.