Example #1
0
        private AzureFileControllerRpcService createService(IAzureFileCsiService azureFileCsiService)
        {
            var lf = new LoggerFactory();

            return(new AzureFileControllerRpcService(
                       azureFileCsiService,
                       lf.CreateLogger <AzureFileControllerRpcService>()));
        }
        public AzureFileControllerRpcService(
            IAzureFileCsiService azureFileCsiService,
            ILogger <AzureFileControllerRpcService> logger)
        {
            this.azureFileCsiService = azureFileCsiService;
            this.logger = logger;

            logger.LogInformation("Controller rpc service loaded");
        }
Example #3
0
        public AzureFileNodeRpcService(
            string nodeId,
            IAzureFileCsiService azureFileCsiService,
            ISmbShareAttacher smbAttacher,
            ILogger <AzureFileNodeRpcService> logger)
        {
            this.nodeId = nodeId;
            this.azureFileCsiService = azureFileCsiService;
            this.smbShareAttacher    = smbAttacher;
            this.logger = logger;

            logger.LogInformation("Node rpc service loaded, nodeId:{0}", nodeId);
        }