internal static partial void EventHorizonDisconnecting( ILogger logger, MicroserviceId consumerMicroservice, TenantId consumerTenant, TenantId producerTenant, PartitionId partition, StreamId publicStream);
internal static partial void EventHorizonAlreadyRegistered( ILogger logger, MicroserviceId consumerMicroservice, TenantId consumerTenant, TenantId producerTenant, PartitionId partition, StreamId publicStream);
internal static partial void NoConsentsConfiguredForConsumer( ILogger logger, PartitionId partition, StreamId publicStream, TenantId producerTenant, TenantId consumerTenant, MicroserviceId consumerMicroservice);
internal static partial void ErrorOccurredInEventHorizon( ILogger logger, Exception exception, MicroserviceId consumerMicroservice, TenantId consumerTenant, TenantId producerTenant, PartitionId partition, StreamId publicStream);
internal static partial void SuccessfullySubscribed( ILogger logger, MicroserviceId consumerMicroservice, TenantId consumerTenant, TenantId producerTenant, StreamPosition streamPosition, PartitionId partition, StreamId publicStream);
internal static partial void IncomingEventHorizonSubscriptionWithArguments( ILogger logger, MicroserviceId consumerMicroservice, TenantId consumerTenant, TenantId producerTenant, StreamPosition streamPosition, PartitionId partition, StreamId publicStream);
public void IsCorrect() { try { var ids = new MicroserviceId("Correct", "Amondo"); } catch (Exception ex) { Assert.Fail(ex.Message); } }
/// <summary> /// This is the default constructor. /// </summary> /// <param name="serviceHandlers">The service handler container.</param> /// <param name="collector">The data collector.</param> /// <param name="sharedServices">The shared service context.</param> /// <param name="originatorId">This is the Microservice identifiers.</param> /// <param name="outgoingRequest">This is the outgoing request initiator.</param> public CommandContextBase( IServiceHandlers serviceHandlers , IDataCollection collector , ISharedService sharedServices , MicroserviceId originatorId , O outgoingRequest) { ServiceHandlers = serviceHandlers; Collector = collector; SharedServices = sharedServices; OriginatorId = originatorId; Outgoing = outgoingRequest; }
/// <summary> /// This is the default constructor. /// </summary> /// <param name="serializer">The serialization container.</param> /// <param name="collector">The data collector.</param> /// <param name="sharedServices">The shared service context.</param> /// <param name="originatorId">This is the Microservice identifiers.</param> /// <param name="outgoingRequest">This is the outgoing request initiator.</param> public CommandContextBase( IPayloadSerializationContainer serializer , IDataCollection collector , ISharedService sharedServices , MicroserviceId originatorId , O outgoingRequest) { PayloadSerializer = serializer; Collector = collector; SharedServices = sharedServices; OriginatorId = originatorId; Outgoing = outgoingRequest; }
public void IsError2() { try { var ids = new MicroserviceId("Correct", "Amondo_"); Assert.Fail(); } catch (MicroserviceIdNotValidException midex) { //This is OK. } catch (Exception ex) { Assert.Fail(ex.Message); } }
internal static void NoMicroserviceConfigurationFor(this ILogger logger, MicroserviceId producerMicroservice) => _noMicroserviceConfigurationFor(logger, producerMicroservice, null);
internal static partial void SuccessfulHandshake(ILogger logger, Version headVersion, SDKIdentifier sdkIdentifier, Version sdkVersion, MicroserviceId microservice, Environment environment, HandshakeAttempt attempt, HandshakeTimeSpent timeSpent);
internal static void WritingEventHorizonEvent(this ILogger logger, EventLogSequenceNumber eventLogSequenceNumber, TenantId producerTenant, MicroserviceId microserviceId, ScopeId scope) => _writingEventHorizonEvent(logger, eventLogSequenceNumber, producerTenant, microserviceId, scope, null);
internal static partial void CheckingConsents(ILogger logger, PartitionId partition, StreamId publicStream, TenantId producerTenant, TenantId consumerTenant, MicroserviceId consumerMicroservice);
public void IsNotValid() { Assert.IsFalse(MicroserviceId.ValidServiceIdentifier("Freddy Got Fingered")); Assert.IsFalse(MicroserviceId.ValidServiceIdentifier("Freddy*")); Assert.IsFalse(MicroserviceId.ValidServiceIdentifier(" Freddy")); }
public void IsValid() { Assert.IsTrue(MicroserviceId.ValidServiceIdentifier("Freddy")); Assert.IsTrue(MicroserviceId.ValidServiceIdentifier("freddy12345")); Assert.IsTrue(MicroserviceId.ValidServiceIdentifier("23freddy12345")); }
internal static partial void ProcessEvent(ILogger logger, ArtifactId eventTypeId, ScopeId scope, MicroserviceId producerMicroservice, TenantId producerTenant);