7cfd00cfd2a0e30f9cffe017b44cd85871d3bccc
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / Base / Core / SubscribeServiceCallback.cs
1 
2 namespace System.Activities.Presentation {
3
4     using System;
5
6     /// <summary>
7     /// A delegate that is a callback for service subscriptions.
8     /// </summary>
9     /// <param name="serviceType">The type of service that has just been published.</param>
10     /// <param name="serviceInstance">The instance of the service.</param>
11     public delegate void SubscribeServiceCallback(Type serviceType, object serviceInstance);
12
13     /// <summary>
14     /// A generic delegate that is a callback for service subscriptions
15     /// </summary>
16     /// <typeparam name="TServiceType">The type of service to listen to.</typeparam>
17     /// <param name="serviceInstance">The instance of the service.</param>
18     public delegate void SubscribeServiceCallback<TServiceType>(TServiceType serviceInstance);
19 }