Пример #1
0
        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)
                    );
            }
        }
Пример #2
0
 public static void DefineProvider(QualifiedName name, Type providerType)
 {
     LateBoundLog.Trace(SR.DefineProvider(name, providerType));
 }
Пример #3
0
 public static void DefineRootProvider(Type providerType)
 {
     LateBoundLog.Trace(SR.DefineRootProvider(providerType));
 }
Пример #4
0
 public static void ProbingForAssemblies(Type type)
 {
     LateBoundLog.Trace(SR.ProbingForAssemblies(type));
 }
Пример #5
0
 public static void RootServiceProviderInitFailure(string rootType,
                                                   Exception ex)
 {
     LateBoundLog.Fail(SR.RootServiceProviderInitFailure(rootType, ex));
 }
Пример #6
0
 public static void TypeReferenceResolveError(Exception ex)
 {
     LateBoundLog.Trace(SR.TypeReferenceResolveError(ex));
 }
Пример #7
0
 public static void TypeReferenceResolvingType(string fullTypeName)
 {
     LateBoundLog.Trace(SR.TypeReferenceResolvingType(fullTypeName));
 }