RegisterActivatedServiceType() private méthode

private RegisterActivatedServiceType ( ActivatedServiceTypeEntry entry ) : void
entry ActivatedServiceTypeEntry
Résultat void
 internal void StoreActivatedExports(RemotingXmlConfigFileData configData)
 {
     foreach (RemotingXmlConfigFileData.TypeEntry entry in configData.ServerActivatedEntries)
     {
         ActivatedServiceTypeEntry entry2 = new ActivatedServiceTypeEntry(entry.TypeName, entry.AssemblyName)
         {
             ContextAttributes = CreateContextAttributesFromConfigEntries(entry.ContextAttributes)
         };
         RemotingConfiguration.RegisterActivatedServiceType(entry2);
     }
 }
Exemple #2
0
 internal static void RegisterTypes(ArrayList types)
 {
     foreach (object obj in types)
     {
         TypeEntry typeEntry = (TypeEntry)obj;
         if (typeEntry is ActivatedClientTypeEntry)
         {
             RemotingConfiguration.RegisterActivatedClientType((ActivatedClientTypeEntry)typeEntry);
         }
         else if (typeEntry is ActivatedServiceTypeEntry)
         {
             RemotingConfiguration.RegisterActivatedServiceType((ActivatedServiceTypeEntry)typeEntry);
         }
         else if (typeEntry is WellKnownClientTypeEntry)
         {
             RemotingConfiguration.RegisterWellKnownClientType((WellKnownClientTypeEntry)typeEntry);
         }
         else if (typeEntry is WellKnownServiceTypeEntry)
         {
             RemotingConfiguration.RegisterWellKnownServiceType((WellKnownServiceTypeEntry)typeEntry);
         }
     }
 }
Exemple #3
0
        public static void RegisterActivatedServiceType(Type type)
        {
            ActivatedServiceTypeEntry entry = new ActivatedServiceTypeEntry(type);

            RemotingConfiguration.RegisterActivatedServiceType(entry);
        }
Exemple #4
0
 /// <summary>Registers a specified object type on the service end as a type that can be activated on request from a client.</summary>
 /// <param name="type">The <see cref="T:System.Type" /> of object to register. </param>
 /// <exception cref="T:System.Security.SecurityException">At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. </exception>
 /// <PermissionSet>
 ///   <IPermission class="System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="MemberAccess" />
 ///   <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="RemotingConfiguration" />
 /// </PermissionSet>
 public static void RegisterActivatedServiceType(Type type)
 {
     RemotingConfiguration.RegisterActivatedServiceType(new ActivatedServiceTypeEntry(type));
 }