Beispiel #1
0
        public void Add(ActorConvention <TActor> convention)
        {
            Guard.AgainstNull(convention, "convention");

            if (_conventions.Any(existingConvention => existingConvention.GetType() == convention.GetType()))
            {
                return;
            }

            _conventions.Add(convention);
        }
 public bool Matches(ActorConvention <TActor> convention)
 {
     return(typeof(PublicMethodsConvention <TActor>).Equals(convention.GetType()));
 }
Beispiel #3
0
        public ActorFactoryConfigurator <TActor> AddConvention(ActorConvention <TActor> convention)
        {
            _conventions.Add(convention);

            return(this);
        }
 public bool Matches(ActorConvention <TActor> convention)
 {
     return(typeof(PropertyChannelsConvention <TActor>).Equals(convention.GetType()));
 }