src/Misc/EFTools/XmlCore/Core/Context/ServiceManager.cs
/// <summary>
///     Removes a subscription for the ServiceType.
/// </summary>
/// <typeparam name="ServiceType">The type of service to remove the subscription from.</typeparam>
/// <param name="callback">The callback object to remove from the subscription.</param>
/// <exception cref="ArgumentNullException">If callback is null.</exception>
Removes a subscription for the ServiceType.
Removes a subscription for the ServiceType .
public void Unsubscribe<TServiceType>(SubscribeServiceCallback<TServiceType> callback)
        {
            if (callback == null)
            {
                throw new ArgumentNullException("callback");
            }
            var proxy = new SubscribeProxy<TServiceType>(callback);
            Unsubscribe(typeof(TServiceType), proxy.Callback);
        }
public void Unsubscribe < TServiceType > ( SubscribeServiceCallback < TServiceType > callback ) { if ( callback == null ) { throw new ArgumentNullException ( " " ) ; } var proxy = new SubscribeProxy < TServiceType > ( callback ) ; Unsubscribe ( typeof ( TServiceType ) , proxy . Callback ) ; }
Removes a subscription for the ServiceType.
Removes a subscription for the ServiceType .
If callback is null.
If callback is null .
callback
SubscribeServiceCallback<TServiceType>
The callback object to remove from the subscription.
The callback object to remove from the subscription .
typeparam
The type of service to remove the subscription from.
The type of service to remove the subscription from .