src/Orleans.Streaming/PubSub/StreamSubscriptionManagerExtensions.cs
/// <summary>
/// Returns the <see cref="IStreamSubscriptionManager"/> for the provided stream provider.
/// </summary>
/// <param name="streamProvider">The stream provider.</param>
/// <param name="manager">The manager.</param>
/// <returns><see langword="true" /> if the stream subscription manager could be retrieved, <see langword="false" /> otherwise.</returns>
Returns the  for the provided stream provider.
Returns the for the provided stream provider .
public static bool TryGetStreamSubscriptionManager(this IStreamProvider streamProvider, out IStreamSubscriptionManager manager)
        {
            manager = null;
            if (streamProvider is IStreamSubscriptionManagerRetriever)
            {
                var streamSubManagerRetriever = streamProvider as IStreamSubscriptionManagerRetriever;
                manager = streamSubManagerRetriever.GetStreamSubscriptionManager();
                return manager != null;
            }
            return false;
        }
public static bool TryGetStreamSubscriptionManager ( this IStreamProvider streamProvider , out IStreamSubscriptionManager manager ) { manager = null ; if ( streamProvider is IStreamSubscriptionManagerRetriever ) { var streamSubManagerRetriever = streamProvider as IStreamSubscriptionManagerRetriever ; manager = streamSubManagerRetriever . GetStreamSubscriptionManager ( ) ; return manager != null ; } return false ; }
Returns the  for the provided stream provider.
Returns the for the provided stream provider .
//implicit only stream provider don't have a subscription manager configured  //so manager can be null;
if the stream subscription manager could be retrieved,  otherwise.
if the stream subscription manager could be retrieved otherwise .
IStreamProvider
this
IStreamSubscriptionManager
out
streamProvider
The stream provider.
The stream provider .
manager
None