public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .Build()
     .Run();
 }
Beispiel #2
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(port: 10100)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq()
     .Build()
     .Run();
 }
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .Build()
     .Run();
 }
Beispiel #4
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(name: "Warden API", port: 5000, integrateWithIIS: true)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToEvent <ApiKeyCreated>()
     .Build()
     .Run();
 }
Beispiel #5
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(port: 10006)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq()
     .SubscribeToCommand <SpawnWarden>()
     .Build()
     .Run();
 }
Beispiel #6
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(port: 10004)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq()
     .SubscribeToEvent <WardenCheckResultProcessed>()
     .Build()
     .Run();
 }
Beispiel #7
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(port: 5056)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToCommand <CreateExternalWarden>()
     .Build()
     .Run();
 }
Beispiel #8
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(port: 10001)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq()
     .SubscribeToCommand <CreateApiKey>()
     .SubscribeToCommand <SignInUser>()
     .SubscribeToEvent <UserPaymentPlanCreated>()
     .Build()
     .Run();
 }
Beispiel #9
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .UseAutofac(Bootstrapper.LifeTimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToCommand <AddPhotosToRemark>()
     .SubscribeToEvent <SignedUp>()
     .SubscribeToEvent <SignedIn>()
     .SubscribeToEvent <AccountActivated>()
     .SubscribeToEvent <UsernameChanged>()
     .SubscribeToEvent <AvatarUploaded>()
     .SubscribeToEvent <AvatarRemoved>()
     .SubscribeToEvent <RemarkCreated>()
     .SubscribeToEvent <RemarkDeleted>()
     .SubscribeToEvent <RemarkResolved>()
     .SubscribeToEvent <RemarkProcessed>()
     .SubscribeToEvent <RemarkRenewed>()
     .SubscribeToEvent <RemarkCanceled>()
     .SubscribeToEvent <RemarkEdited>()
     .SubscribeToEvent <RemarkAssignedToGroup>()
     .SubscribeToEvent <RemarkAssignmentDenied>()
     .SubscribeToEvent <RemarkAssignmentRemoved>()
     .SubscribeToEvent <PhotosToRemarkAdded>()
     .SubscribeToEvent <AddPhotosToRemarkRejected>()
     .SubscribeToEvent <PhotosFromRemarkRemoved>()
     .SubscribeToEvent <RemarkVoteSubmitted>()
     .SubscribeToEvent <RemarkVoteDeleted>()
     .SubscribeToEvent <CommentAddedToRemark>()
     .SubscribeToEvent <CommentEditedInRemark>()
     .SubscribeToEvent <CommentDeletedFromRemark>()
     .SubscribeToEvent <RemarkCommentVoteSubmitted>()
     .SubscribeToEvent <RemarkCommentVoteDeleted>()
     .SubscribeToEvent <FavoriteRemarkAdded>()
     .SubscribeToEvent <FavoriteRemarkDeleted>()
     .SubscribeToEvent <RemarkActionTaken>()
     .SubscribeToEvent <RemarkActionCanceled>()
     .SubscribeToEvent <RemarkReported>()
     .SubscribeToEvent <OperationCreated>()
     .SubscribeToEvent <OperationUpdated>()
     .SubscribeToEvent <RemarkStateDeleted>()
     .SubscribeToEvent <GroupCreated>()
     .SubscribeToEvent <OrganizationCreated>()
     .SubscribeToEvent <MemberAddedToGroup>()
     .SubscribeToEvent <MemberAddedToOrganization>()
     .SubscribeToEvent <AccountDeleted>()
     .SubscribeToEvent <AccountLocked>()
     .SubscribeToEvent <AccountUnlocked>()
     .SubscribeToEvent <UserNotificationSettingsUpdated>()
     .SubscribeToEvent <TagsCreated>()
     .Build()
     .Run();
 }
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(port: 5053)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToCommand <ProcessWardenCheckResult>()
     .SubscribeToEvent <OrganizationCreated>()
     .SubscribeToEvent <WardenCreated>()
     .Build()
     .Run();
 }
Beispiel #11
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(port: 10002)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq()
     .SubscribeToCommand <CreateOrganization>()
     .SubscribeToCommand <CreateWarden>()
     .SubscribeToCommand <DeleteWarden>()
     .SubscribeToEvent <NewUserSignedIn>()
     .SubscribeToEvent <UserSignedIn>()
     .Build()
     .Run();
 }
Beispiel #12
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToCommand <SendSupportEmailMessage>()
     .SubscribeToCommand <SendResetPasswordEmailMessage>()
     .SubscribeToCommand <SendActivateAccountEmailMessage>()
     .SubscribeToCommand <SendRemarkCreatedEmailMessage>()
     .SubscribeToCommand <SendRemarkStateChangedEmailMessage>()
     .SubscribeToCommand <SendPhotosAddedToRemarkEmailMessage>()
     .SubscribeToCommand <SendCommentAddedToRemarkEmailMessage>()
     .Build()
     .Run();
 }
Beispiel #13
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToCommand <CreateGroup>()
     .SubscribeToCommand <CreateOrganization>()
     .SubscribeToCommand <AddMemberToGroup>()
     .SubscribeToCommand <AddMemberToOrganization>()
     .SubscribeToEvent <SignedUp>()
     .SubscribeToEvent <UsernameChanged>()
     .SubscribeToEvent <AccountDeleted>()
     .Build()
     .Run();
 }
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToEvent <RemarkCreated>()
     .SubscribeToEvent <RemarkResolved>()
     .SubscribeToEvent <RemarkDeleted>()
     //.SubscribeToEvent<RemarkProcessed>()
     .SubscribeToEvent <RemarkRenewed>()
     .SubscribeToEvent <RemarkCanceled>()
     .SubscribeToEvent <RemarkVoteSubmitted>()
     .SubscribeToEvent <RemarkVoteDeleted>()
     .Build()
     .Run();
 }
Beispiel #15
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(port: 10007)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq()
     .SubscribeToCommand <RequestNewApiKey>()
     .SubscribeToCommand <RequestNewWarden>()
     .SubscribeToCommand <RequestWardenCheckResultProcessing>()
     .SubscribeToCommand <RequestNewOrganization>()
     .SubscribeToEvent <ApiKeyCreated>()
     .SubscribeToEvent <WardenCheckResultProcessed>()
     .SubscribeToEvent <NewUserSignedIn>()
     .SubscribeToEvent <WardenCreated>()
     .SubscribeToEvent <OrganizationCreated>()
     .Build()
     .Run();
 }
Beispiel #16
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(port: 10000)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq()
     .SubscribeToEvent <ApiKeyCreated>()
     .SubscribeToEvent <NewUserSignedIn>()
     .SubscribeToEvent <UserSignedIn>()
     .SubscribeToEvent <UserPaymentPlanCreated>()
     .SubscribeToEvent <OrganizationCreated>()
     .SubscribeToEvent <WardenCheckResultProcessed>()
     .SubscribeToEvent <WardenCreated>()
     .SubscribeToEvent <OperationCreated>()
     .SubscribeToEvent <OperationUpdated>()
     .Build()
     .Run();
 }
Beispiel #17
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .UseAutofac(Startup.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToEvent <OperationUpdated>()
     .SubscribeToEvent <PhotosToRemarkAdded>()
     .SubscribeToEvent <PhotosFromRemarkRemoved>()
     .SubscribeToEvent <RemarkVoteSubmitted>()
     .SubscribeToEvent <RemarkVoteDeleted>()
     // .SubscribeToEvent<RemarkCreated>()
     // .SubscribeToEvent<RemarkResolved>()
     // .SubscribeToEvent<RemarkDeleted>()
     // .SubscribeToEvent<RemarkProcessed>()
     // .SubscribeToEvent<RemarkRenewed>()
     .Build()
     .Run();
 }
Beispiel #18
0
        public static void Main(string[] args)
        {
            /*
             * var host = new WebHostBuilder()
             *          .UseKestrel()
             *          .UseContentRoot(Directory.GetCurrentDirectory())
             *          .UseStartup<Startup>()
             *          .Build();
             *
             * host.Run();
             */

            WebServiceHost
            .Create <Startup>(port: 10030)
            .UseAutofac(Startup.LifetimeScope)
            .UseRabbitMq()
            .SubscribeToEvent <TicketCreated>(exchangeName: "servicedesk.Services.Tickets", routingKey: "ticket.created")
            .Build()
            .Run();
        }
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToCommand <SignUp>()
     .SubscribeToCommand <SignOut>()
     .SubscribeToCommand <ActivateAccount>()
     .SubscribeToCommand <ChangeUsername>()
     .SubscribeToCommand <UploadAvatar>()
     .SubscribeToCommand <RemoveAvatar>()
     .SubscribeToCommand <ChangePassword>()
     .SubscribeToCommand <ResetPassword>()
     .SubscribeToCommand <SetNewPassword>()
     .SubscribeToCommand <PostOnFacebookWall>()
     .SubscribeToCommand <DeleteAccount>()
     .SubscribeToCommand <LockAccount>()
     .SubscribeToCommand <UnlockAccount>()
     .Build()
     .Run();
 }
Beispiel #20
0
 public static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToCommand <CreateRemark>()
     .SubscribeToCommand <DeleteRemark>()
     .SubscribeToCommand <ProcessRemark>()
     .SubscribeToCommand <ResolveRemark>()
     .SubscribeToCommand <RenewRemark>()
     .SubscribeToCommand <CancelRemark>()
     .SubscribeToCommand <DeleteRemarkState>()
     .SubscribeToCommand <AddPhotosToRemark>()
     .SubscribeToCommand <RemovePhotosFromRemark>()
     .SubscribeToCommand <SubmitRemarkVote>()
     .SubscribeToCommand <DeleteRemarkVote>()
     .SubscribeToCommand <AddCommentToRemark>()
     .SubscribeToCommand <EditRemarkComment>()
     .SubscribeToCommand <DeleteRemarkComment>()
     .SubscribeToCommand <SubmitRemarkCommentVote>()
     .SubscribeToCommand <DeleteRemarkCommentVote>()
     .SubscribeToCommand <AddFavoriteRemark>()
     .SubscribeToCommand <DeleteFavoriteRemark>()
     .SubscribeToCommand <TakeRemarkAction>()
     .SubscribeToCommand <CancelRemarkAction>()
     .SubscribeToCommand <ReportRemark>()
     .SubscribeToCommand <EditRemark>()
     .SubscribeToEvent <SignedUp>()
     .SubscribeToEvent <AccountDeleted>()
     .SubscribeToEvent <UsernameChanged>()
     .SubscribeToEvent <GroupCreated>()
     .SubscribeToEvent <MemberAddedToGroup>()
     .Build()
     .Run();
 }
 static void Main(string[] args)
 {
     WebServiceHost
     .Create <Startup>(args: args)
     .UseAutofac(Bootstrapper.LifetimeScope)
     .UseRabbitMq(queueName: typeof(Program).Namespace)
     .SubscribeToCommand <UpdateUserNotificationSettings>()
     .SubscribeToEvent <RemarkCreated>()
     .SubscribeToEvent <RemarkCanceled>()
     .SubscribeToEvent <RemarkDeleted>()
     .SubscribeToEvent <RemarkProcessed>()
     .SubscribeToEvent <RemarkRenewed>()
     .SubscribeToEvent <RemarkResolved>()
     .SubscribeToEvent <PhotosToRemarkAdded>()
     .SubscribeToEvent <CommentAddedToRemark>()
     .SubscribeToEvent <SignedUp>()
     .SubscribeToEvent <UsernameChanged>()
     .SubscribeToEvent <FavoriteRemarkAdded>()
     .SubscribeToEvent <FavoriteRemarkDeleted>()
     .SubscribeToEvent <RemarkActionTaken>()
     .SubscribeToEvent <RemarkActionCanceled>()
     .Build()
     .Run();
 }