public T CreateActorProxy <T>(ActorReference actorReference) where T : IActor =>
 (T)actorReference.Bind(typeof(T));
Esempio n. 2
0
        /// <summary>
        /// Creates an <see cref="ActorProxy"/> of the specified type.
        /// </summary>
        /// <typeparam name="TActor"></typeparam>
        /// <param name="reference"></param>
        /// <returns></returns>
        public static TActor Bind <TActor>(this ActorReference reference)
        {
            Contract.Requires <ArgumentNullException>(reference != null);

            return((TActor)reference.Bind(typeof(TActor)));
        }