Пример #1
0
 public DbusServiceRegistrationParams(DbusServiceCreationParams CreationParams, Type ServiceType)
 {
     this.CreationParams = CreationParams;
     this.ServiceType    = ServiceType;
     this.key            = RegistrationKey(CreationParams, ServiceType);
     this.hash           = this.key.GetHashCode();
 }
Пример #2
0
 /// <summary>
 /// Turn registration parameters data into a key.
 /// </summary>
 /// <param name="CreationParams">Creation parameters.</param>
 /// <param name="ServiceType">WCF Service type.</param>
 /// <returns>Key used for dictionary.</returns>
 static string RegistrationKey(DbusServiceCreationParams CreationParams, Type ServiceType)
 {
     return(string.Format(RegistrationKeyFormat, ServiceType.FullName, CreationParams.ContractType.FullName, CreationParams.RelativeName));
 }
Пример #3
0
 public ServiceHostCreationData(DbusServiceHost Host, DbusServiceCreationParams CreationParams)
 {
     this.Host           = Host;
     this.CreationParams = CreationParams;
 }
Пример #4
0
 public DbusServiceRegistrationParams(DbusServiceCreationParams CreationParams, Type ServiceType)
 {
     this.CreationParams = CreationParams;
     this.ServiceType = ServiceType;
     this.key = RegistrationKey(CreationParams, ServiceType);
     this.hash = this.key.GetHashCode();
 }
Пример #5
0
 public ServiceHostCreationData(DbusServiceHost Host, DbusServiceCreationParams CreationParams)
 {
     this.Host = Host;
     this.CreationParams = CreationParams;
 }
Пример #6
0
 /// <summary>
 /// Turn registration parameters data into a key.
 /// </summary>
 /// <param name="CreationParams">Creation parameters.</param>
 /// <param name="ServiceType">WCF Service type.</param>
 /// <returns>Key used for dictionary.</returns>
 static string RegistrationKey(DbusServiceCreationParams CreationParams, Type ServiceType)
 {
     return string.Format(RegistrationKeyFormat, ServiceType.FullName, CreationParams.ContractType.FullName, CreationParams.RelativeName);
 }
Пример #7
0
 public WCFServiceCreationData(Func <TService> func, DbusServiceCreationParams CreationParams)
 {
     this.func           = func;
     this.CreationParams = CreationParams;
 }