Amss.Boilerplate.Persistence.Impl.Configuration.PersistenceContainerExtension.CommandToContract C# (CSharp) Method

CommandToContract() private method

private CommandToContract ( Type commandType ) : System.Type[]
commandType System.Type
return System.Type[]
        private Type[] CommandToContract(Type commandType)
        {
            var query = from t in commandType.GetInterfaces()
                        where t.IsGenericType && t.GetGenericTypeDefinition() == typeof(IQueryRepositoryCommand<,>)
                        select t;
            var result = query.ToArray();
            return result;
        }