Exemple #1
0
 static ProviderKey()
 {
     ServerType = new ProviderKey {
         Name = "ServerType", Type = typeof(IAppServer)
     };
     SocketServerFactory = new ProviderKey {
         Name = "SocketServerFactory", Type = typeof(ISocketServerFactory)
     };
     ConnectionFilter = new ProviderKey {
         Name = "ConnectionFilter", Type = typeof(IConnectionFilter)
     };
     LogFactory = new ProviderKey {
         Name = "LogFactory", Type = typeof(ILogFactory)
     };
     ReceiveFilterFactory = new ProviderKey {
         Name = "ReceiveFilterFactory", Type = typeof(IReceiveFilterFactory)
     };
     CommandLoader = new ProviderKey {
         Name = "CommandLoader", Type = typeof(ICommandLoader)
     };
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProviderFactoryInfo"/> class.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <param name="name">The name.</param>
 /// <param name="typeName">Name of the type.</param>
 public ProviderFactoryInfo(ProviderKey key, string name, string typeName)
 {
     Key           = key;
     Name          = name;
     ExportFactory = new ExportFactory(typeName);
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProviderFactoryInfo"/> class.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <param name="name">The name.</param>
 /// <param name="type">The type.</param>
 public ProviderFactoryInfo(ProviderKey key, string name, Type type)
     : this(key, name, type.AssemblyQualifiedName)
 {
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProviderFactoryInfo"/> class.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <param name="name">The name.</param>
 /// <param name="instance">The instance.</param>
 public ProviderFactoryInfo(ProviderKey key, string name, object instance)
 {
     Key           = key;
     Name          = name;
     ExportFactory = new ExportFactory(instance);
 }