/// <summary> /// Initializes a new instance of the <see cref="SubscriptionServerCreatedLogEntry{TSchema}" /> class. /// </summary> /// <param name="server">The server which was created.</param> public SubscriptionServerCreatedLogEntry(ISubscriptionServer <TSchema> server) : base(SubscriptionLogEventIds.SubscriptionServerCreated) { _serverTypeShortName = server.GetType().FriendlyName(); _schemaTypeShortName = typeof(TSchema).FriendlyName(); this.SchemaTypeName = typeof(TSchema).FriendlyName(true); this.ServerTypeName = server.GetType().FriendlyName(true); this.ServerId = server.Id; }
/// <summary> /// Initializes a new instance of the <see cref="SubscriptionClientRegisteredLogEntry{TSchema}" /> class. /// </summary> /// <param name="server">The server which created teh client.</param> /// <param name="client">The client that was created.</param> public SubscriptionClientRegisteredLogEntry( ISubscriptionServer <TSchema> server, ISubscriptionClientProxy client) : base(SubscriptionLogEventIds.SubscriptionClientRegistered) { _clientTypeShortName = client.GetType().FriendlyName(); _schemaTypeShortName = typeof(TSchema).FriendlyName(); this.SchemaTypeName = typeof(TSchema).FriendlyName(true); this.ClientTypeName = client.GetType().FriendlyName(true); this.ServerTypeName = server.GetType().FriendlyName(true); this.ClientId = client.Id; this.ServerId = server.Id; }