コード例 #1
0
ファイル: ActorSystem.cs プロジェクト: zloom/Orleankka
 /// <summary>
 /// Acquires the stream reference for the given id and type of the stream.
 /// </summary>
 /// <param name="system">The reference to actor system</param>
 /// <param name="provider">The name of the stream provider</param>
 /// <param name="id">The id</param>
 /// <returns>A stream reference</returns>
 public static StreamRef StreamOf(this IActorSystem system, string provider, string id)
 {
     return system.StreamOf(StreamPath.From(provider, id));
 }
コード例 #2
0
ファイル: ActorSystem.cs プロジェクト: stantoxt/Orleankka
 /// <summary>
 /// Acquires the stream reference for the given provider name and id of the stream.
 /// </summary>
 /// <param name="system">The reference to actor system</param>
 /// <param name="provider">The name of the stream provider</param>
 /// <param name="id">The id</param>
 /// <typeparam name="TItem">The type of the stream item</typeparam>
 /// <returns>A stream reference</returns>
 public static StreamRef <TItem> StreamOf <TItem>(this IActorSystem system, string provider, string id)
 {
     return(system.StreamOf <TItem>(StreamPath.From(provider, id)));
 }
コード例 #3
0
ファイル: ActorSystem.cs プロジェクト: mbernard/Orleankka
 /// <summary>
 /// Acquires the stream reference for the given id and type of the stream.
 /// </summary>
 /// <typeparam name="TStream">The type of the stream</typeparam>
 /// <param name="system">The reference to actor system</param>
 /// <param name="id">The id</param>
 /// <returns>A stream reference</returns>
 public static StreamRef StreamOf <TStream>(this IActorSystem system, string id) where TStream : IStreamProvider
 {
     return(system.StreamOf(StreamPath.From(typeof(TStream), id)));
 }