private void InvokeStartClass(Type startClass)
        {
            // TODO Support fields and properties
            foreach (var mi in startClass.GetMethods(BindingFlags.Public | BindingFlags.Static))
            {
                var args = mi.GetParameters()
                           .Select(t => GetService(t.ParameterType)).ToArray();

                LateBoundLog.Try(
                    SR.ProblemExecutingServiceRegistration(startClass, mi.Name),
                    () => mi.Invoke(null, args)
                    );
            }
        }
Exemple #2
0
 public static void DefineProvider(QualifiedName name, Type providerType)
 {
     LateBoundLog.Trace(SR.DefineProvider(name, providerType));
 }
Exemple #3
0
 public static void DefineRootProvider(Type providerType)
 {
     LateBoundLog.Trace(SR.DefineRootProvider(providerType));
 }
Exemple #4
0
 public static void ProbingForAssemblies(Type type)
 {
     LateBoundLog.Trace(SR.ProbingForAssemblies(type));
 }
Exemple #5
0
 public static void RootServiceProviderInitFailure(string rootType,
                                                   Exception ex)
 {
     LateBoundLog.Fail(SR.RootServiceProviderInitFailure(rootType, ex));
 }
Exemple #6
0
 public static void TypeReferenceResolveError(Exception ex)
 {
     LateBoundLog.Trace(SR.TypeReferenceResolveError(ex));
 }
Exemple #7
0
 public static void TypeReferenceResolvingType(string fullTypeName)
 {
     LateBoundLog.Trace(SR.TypeReferenceResolvingType(fullTypeName));
 }