Example #1
0
 internal static partial void EventHorizonDisconnecting(
     ILogger logger,
     MicroserviceId consumerMicroservice,
     TenantId consumerTenant,
     TenantId producerTenant,
     PartitionId partition,
     StreamId publicStream);
Example #2
0
 internal static partial void EventHorizonAlreadyRegistered(
     ILogger logger,
     MicroserviceId consumerMicroservice,
     TenantId consumerTenant,
     TenantId producerTenant,
     PartitionId partition,
     StreamId publicStream);
Example #3
0
 internal static partial void NoConsentsConfiguredForConsumer(
     ILogger logger,
     PartitionId partition,
     StreamId publicStream,
     TenantId producerTenant,
     TenantId consumerTenant,
     MicroserviceId consumerMicroservice);
Example #4
0
 internal static partial void ErrorOccurredInEventHorizon(
     ILogger logger,
     Exception exception,
     MicroserviceId consumerMicroservice,
     TenantId consumerTenant,
     TenantId producerTenant,
     PartitionId partition,
     StreamId publicStream);
Example #5
0
 internal static partial void SuccessfullySubscribed(
     ILogger logger,
     MicroserviceId consumerMicroservice,
     TenantId consumerTenant,
     TenantId producerTenant,
     StreamPosition streamPosition,
     PartitionId partition,
     StreamId publicStream);
Example #6
0
 internal static partial void IncomingEventHorizonSubscriptionWithArguments(
     ILogger logger,
     MicroserviceId consumerMicroservice,
     TenantId consumerTenant,
     TenantId producerTenant,
     StreamPosition streamPosition,
     PartitionId partition,
     StreamId publicStream);
Example #7
0
 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;
 }
Example #10
0
 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);
     }
 }
Example #11
0
 internal static void NoMicroserviceConfigurationFor(this ILogger logger, MicroserviceId producerMicroservice)
 => _noMicroserviceConfigurationFor(logger, producerMicroservice, null);
Example #12
0
 internal static partial void SuccessfulHandshake(ILogger logger, Version headVersion, SDKIdentifier sdkIdentifier, Version sdkVersion, MicroserviceId microservice, Environment environment, HandshakeAttempt attempt, HandshakeTimeSpent timeSpent);
Example #13
0
 internal static void WritingEventHorizonEvent(this ILogger logger, EventLogSequenceNumber eventLogSequenceNumber, TenantId producerTenant, MicroserviceId microserviceId, ScopeId scope)
 => _writingEventHorizonEvent(logger, eventLogSequenceNumber, producerTenant, microserviceId, scope, null);
Example #14
0
 internal static partial void CheckingConsents(ILogger logger, PartitionId partition, StreamId publicStream, TenantId producerTenant, TenantId consumerTenant, MicroserviceId consumerMicroservice);
Example #15
0
 public void IsNotValid()
 {
     Assert.IsFalse(MicroserviceId.ValidServiceIdentifier("Freddy Got Fingered"));
     Assert.IsFalse(MicroserviceId.ValidServiceIdentifier("Freddy*"));
     Assert.IsFalse(MicroserviceId.ValidServiceIdentifier(" Freddy"));
 }
Example #16
0
 public void IsValid()
 {
     Assert.IsTrue(MicroserviceId.ValidServiceIdentifier("Freddy"));
     Assert.IsTrue(MicroserviceId.ValidServiceIdentifier("freddy12345"));
     Assert.IsTrue(MicroserviceId.ValidServiceIdentifier("23freddy12345"));
 }
Example #17
0
 internal static partial void ProcessEvent(ILogger logger, ArtifactId eventTypeId, ScopeId scope, MicroserviceId producerMicroservice, TenantId producerTenant);