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